You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jaxme-dev@ws.apache.org by "Jochen Wiedmann (JIRA)" <ja...@ws.apache.org> on 2005/12/07 21:41:10 UTC

[jira] Geschlossen: (JAXME-75) List returning more that the types required.

     [ http://issues.apache.org/jira/browse/JAXME-75?page=all ]
     
Jochen Wiedmann closed JAXME-75:
--------------------------------

    Resolution: Invalid

The error is in your application:

			List children = sh.getLibraryReference();

			children.addAll(sh.getCategory());


You are adding instances of CategoryImpl to the list getLibraryReference(), which may only contain instances of LibraryReferenceImpl.

What you probably want to do is

			List children = new ArrayList(sh.getLibraryReference());

			children.addAll(sh.getCategory());



> List  returning more that the types required.
> ---------------------------------------------
>
>          Key: JAXME-75
>          URL: http://issues.apache.org/jira/browse/JAXME-75
>      Project: JaxMe
>         Type: Bug
>   Components: JaxMe Core
>     Versions: 0.5
>  Environment: Windows
>     Reporter: Martin Roberts
>  Attachments: jaxme.zip
>
> I have read in a file OK but when I come to write it out I get a problem with the marshalling which seems to mix up two types.  I have also got an example whee I ask for template.getLibraryReference() and when I cycle through the list I find it includes some catergoryImpl types as well.
> I will attach a file which include an eclipse project but all a build.xml file that you just have to run.  The actual test source is in jaxme\junitsrc\com\bt\grasp\test directory.
> Thanks

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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