You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Sean Comerford (JIRA)" <ji...@apache.org> on 2009/01/07 00:05:44 UTC

[jira] Issue Comment Edited: (AXIS2-4121) HashSet produce "argument type mismatch" when using the POJO functionality

    [ https://issues.apache.org/jira/browse/AXIS2-4121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12661361#action_12661361 ] 

seanc edited comment on AXIS2-4121 at 1/6/09 3:05 PM:
---------------------------------------------------------------

Stupid question - how do I get this fix? i'm running into this very issue.

I downloaded the nightly build of axis2-adb but stil the same exception.,

      was (Author: seanc):
    Stupid question - how do I get this fix? i'm running into this very issue
  
> HashSet produce "argument type mismatch" when using the POJO functionality
> --------------------------------------------------------------------------
>
>                 Key: AXIS2-4121
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4121
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.4.1
>            Reporter: Dennis Sieben
>         Attachments: adb_patch.diff
>
>
> If you let axis convert POJOs to a webservice which contain HashSet objects you will run into the problem that you get the HashSet as a list via SOAP but you are not able to sent this list back. You will face an "argument type mismatch" error.
> This happens because inside the source code there is a check if the class of the property is a subclass or implementor of Collection which is the case for HashSet. But if this check is true, an ArrayList is build up every time, but ArrayList is not the only class which implements Collection, so this will lead to errors for each class implementing the Collection interface beside the ArrayList class.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.