You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Jacob Danner (JIRA)" <xm...@xml.apache.org> on 2005/04/19 23:13:27 UTC

[jira] Closed: (XMLBEANS-34) error compiling classes when using a schema with a redefined subelement

     [ http://issues.apache.org/jira/browse/XMLBEANS-34?page=all ]
     
Jacob Danner closed XMLBEANS-34:
--------------------------------

    Assign To:     (was: Radu Preotiuc-Pietro)

Fix verified with latest srcs, closing

> error compiling classes when using a schema with a redefined subelement
> -----------------------------------------------------------------------
>
>          Key: XMLBEANS-34
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-34
>      Project: XMLBeans
>         Type: Bug
>   Components: Compiler
>     Versions: Version 1
>     Reporter: Patrick Peck
>      Fix For: Version 2 Beta 2, Version 2
>  Attachments: Core.20020225.xsd, Core.20020831.xsd
>
> when trying to compile the two schemas ('Core.20020831.xsd' and 'Core.20020225.xsd') i get a java compile error because of an overridden 'getInfo()' method in 'ReferencesCheckResultType', which declares a different return type in the base type 'CheckResultType'. you have to compile the schema using the -nopvr option.
> the root cause is: while 'ReferencesCheckResultType' is derived from 'CheckResultType', it also declares an 'Info' subelement which has a different type than the 'Info' subelement in 'CheckResultType'. although from a xml schema point of view these two types are compatible.
> i didn't find any way to work around this. i think this is a rather fundamental problem, rooted in the mismatch between the xml schema model and java object model. maybe there's a way of working around this by configuration (e.g. by being able to redefine the names of getters/setters for certain subelements).

-- 
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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org