axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dennis Sieben (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2-4121) HashSet produce "argument type mismatch" when using the POJO functionality
Date Tue, 04 Nov 2008 15:44:44 GMT
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


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.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message