You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Chris Clark (JIRA)" <xm...@xml.apache.org> on 2009/02/16 21:18:03 UTC

[jira] Created: (XMLBEANS-396) GML 3.1.1 generated code fails to compile.

GML 3.1.1 generated code fails to compile.
------------------------------------------

                 Key: XMLBEANS-396
                 URL: https://issues.apache.org/jira/browse/XMLBEANS-396
             Project: XMLBeans
          Issue Type: Bug
    Affects Versions: Version 2.4.1 
            Reporter: Chris Clark


After generating code for GML 3.1.1, the code fails to compile. The following compilation error is given: 
generatedSetterHelperImpl(org.apache.xmlbeans.XmlObject,javax.xml.namespace.QName,int,short) in org.apache.xmlbeans.impl.values.XmlObjectBase cannot be applied to (java.lang.Object,javax.xml.namespace.QName,int,short) generatedSetterHelperImpl(xnull, NULL$26, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);

It appears this error is a result of changes made to SchemaTypeCodePrinter.java. The call generatedSetterHelperImpl is called in 2 places in this class, however the second place is surrounded by an "if ( isobj )" which appears to generate invalid code. I believe this code needs to be updated to reflect the  "if ( xmltype && !isSubstGroup )" as in the first place the code is called.

This code change fixed the issue with GML 3.1.1 gode generation. Someone more familiar with the code should verify and commit this change.


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


[jira] Resolved: (XMLBEANS-396) GML 3.1.1 generated code fails to compile.

Posted by "Wing Yew Poon (JIRA)" <xm...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XMLBEANS-396?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wing Yew Poon resolved XMLBEANS-396.
------------------------------------

    Fix Version/s: Version 2.5.1
                       (was: Version 2.4.1 )
       Resolution: Fixed

Committed fix as suggested by Chris Clark, svn revision 1002387.
Cezar did not make the suggested change; he changed

            if ( isobj )

to

            if ( isobj && !isSubstGroup )

instead of

            if ( xmltype && !isSubstGroup ) 

The original condition in the if clause had been (javaType == SchemaProperty.XML_OBJECT), which is what the boolean variable xmltype is equal to.

> GML 3.1.1 generated code fails to compile.
> ------------------------------------------
>
>                 Key: XMLBEANS-396
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-396
>             Project: XMLBeans
>          Issue Type: Bug
>    Affects Versions: Version 2.4.1 
>            Reporter: Chris Clark
>             Fix For: Version 2.5.1
>
>
> After generating code for GML 3.1.1, the code fails to compile. The following compilation error is given: 
> generatedSetterHelperImpl(org.apache.xmlbeans.XmlObject,javax.xml.namespace.QName,int,short) in org.apache.xmlbeans.impl.values.XmlObjectBase cannot be applied to (java.lang.Object,javax.xml.namespace.QName,int,short) generatedSetterHelperImpl(xnull, NULL$26, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
> It appears this error is a result of changes made to SchemaTypeCodePrinter.java. The call generatedSetterHelperImpl is called in 2 places in this class, however the second place is surrounded by an "if ( isobj )" which appears to generate invalid code. I believe this code needs to be updated to reflect the  "if ( xmltype && !isSubstGroup )" as in the first place the code is called.
> This code change fixed the issue with GML 3.1.1 gode generation. Someone more familiar with the code should verify and commit this change.

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


[jira] Reopened: (XMLBEANS-396) GML 3.1.1 generated code fails to compile.

Posted by "Wing Yew Poon (JIRA)" <xm...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XMLBEANS-396?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wing Yew Poon reopened XMLBEANS-396:
------------------------------------


Cezar's change is in XMLBeans 2.5.0 (current release). However, it does not fix the compilation issue. I have confirmed that the issue still occurs for the GML 3.1.1 schema, as well as for the NEMSIS EMSDataSet.xsd schema (http://www.nemsis.org/softwaredevelopers/downloads/emsDataset.html), as reported by Paul Gillen on the user list.

> GML 3.1.1 generated code fails to compile.
> ------------------------------------------
>
>                 Key: XMLBEANS-396
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-396
>             Project: XMLBeans
>          Issue Type: Bug
>    Affects Versions: Version 2.4.1 
>            Reporter: Chris Clark
>             Fix For: Version 2.4.1 
>
>
> After generating code for GML 3.1.1, the code fails to compile. The following compilation error is given: 
> generatedSetterHelperImpl(org.apache.xmlbeans.XmlObject,javax.xml.namespace.QName,int,short) in org.apache.xmlbeans.impl.values.XmlObjectBase cannot be applied to (java.lang.Object,javax.xml.namespace.QName,int,short) generatedSetterHelperImpl(xnull, NULL$26, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
> It appears this error is a result of changes made to SchemaTypeCodePrinter.java. The call generatedSetterHelperImpl is called in 2 places in this class, however the second place is surrounded by an "if ( isobj )" which appears to generate invalid code. I believe this code needs to be updated to reflect the  "if ( xmltype && !isSubstGroup )" as in the first place the code is called.
> This code change fixed the issue with GML 3.1.1 gode generation. Someone more familiar with the code should verify and commit this change.

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


[jira] Commented: (XMLBEANS-396) GML 3.1.1 generated code fails to compile.

Posted by "Scott Schwab (JIRA)" <xm...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XMLBEANS-396?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12886894#action_12886894 ] 

Scott Schwab commented on XMLBEANS-396:
---------------------------------------

Anna,
Thanks for finding this problem in the 2.5 release, your note just saved me a great deal of work.

with respect,
Scott Schwab

> GML 3.1.1 generated code fails to compile.
> ------------------------------------------
>
>                 Key: XMLBEANS-396
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-396
>             Project: XMLBeans
>          Issue Type: Bug
>    Affects Versions: Version 2.4.1 
>            Reporter: Chris Clark
>             Fix For: Version 2.4.1 
>
>
> After generating code for GML 3.1.1, the code fails to compile. The following compilation error is given: 
> generatedSetterHelperImpl(org.apache.xmlbeans.XmlObject,javax.xml.namespace.QName,int,short) in org.apache.xmlbeans.impl.values.XmlObjectBase cannot be applied to (java.lang.Object,javax.xml.namespace.QName,int,short) generatedSetterHelperImpl(xnull, NULL$26, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
> It appears this error is a result of changes made to SchemaTypeCodePrinter.java. The call generatedSetterHelperImpl is called in 2 places in this class, however the second place is surrounded by an "if ( isobj )" which appears to generate invalid code. I believe this code needs to be updated to reflect the  "if ( xmltype && !isSubstGroup )" as in the first place the code is called.
> This code change fixed the issue with GML 3.1.1 gode generation. Someone more familiar with the code should verify and commit this change.

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


[jira] Commented: (XMLBEANS-396) GML 3.1.1 generated code fails to compile.

Posted by "Timo Thomas (JIRA)" <xm...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XMLBEANS-396?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12915230#action_12915230 ] 

Timo Thomas commented on XMLBEANS-396:
--------------------------------------

When's this fix going into the repository? I just checked out the current sources, and I still this error when compiling the code for GML 3.1.1 or 3.2.1 :

ValueArrayPropertyTypeImpl.java:533: generatedSetterHelperImpl(org.apache.xmlbeans.XmlObject,javax.xml.namespace.QName,int,short) in org.apache.xmlbeans.impl.values.XmlObjectBase cannot be applied to (java.lang.Object,javax.xml.namespace.QName,int,short)
        generatedSetterHelperImpl(xnull, NULL$6, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);

BTW, how to obtain the 2.4.1 version? I can't see such a tag or revision in the SVN.





> GML 3.1.1 generated code fails to compile.
> ------------------------------------------
>
>                 Key: XMLBEANS-396
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-396
>             Project: XMLBeans
>          Issue Type: Bug
>    Affects Versions: Version 2.4.1 
>            Reporter: Chris Clark
>             Fix For: Version 2.4.1 
>
>
> After generating code for GML 3.1.1, the code fails to compile. The following compilation error is given: 
> generatedSetterHelperImpl(org.apache.xmlbeans.XmlObject,javax.xml.namespace.QName,int,short) in org.apache.xmlbeans.impl.values.XmlObjectBase cannot be applied to (java.lang.Object,javax.xml.namespace.QName,int,short) generatedSetterHelperImpl(xnull, NULL$26, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
> It appears this error is a result of changes made to SchemaTypeCodePrinter.java. The call generatedSetterHelperImpl is called in 2 places in this class, however the second place is surrounded by an "if ( isobj )" which appears to generate invalid code. I believe this code needs to be updated to reflect the  "if ( xmltype && !isSubstGroup )" as in the first place the code is called.
> This code change fixed the issue with GML 3.1.1 gode generation. Someone more familiar with the code should verify and commit this change.

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


[jira] Issue Comment Edited: (XMLBEANS-396) GML 3.1.1 generated code fails to compile.

Posted by "Timo Thomas (JIRA)" <xm...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XMLBEANS-396?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12915230#action_12915230 ] 

Timo Thomas edited comment on XMLBEANS-396 at 9/27/10 4:11 AM:
---------------------------------------------------------------

When's this fix going into the repository? I just checked out the current sources, and I still get this error when compiling the code for GML 3.1.1 or 3.2.1 :

ValueArrayPropertyTypeImpl.java:533: generatedSetterHelperImpl(org.apache.xmlbeans.XmlObject,javax.xml.namespace.QName,int,short) in org.apache.xmlbeans.impl.values.XmlObjectBase cannot be applied to (java.lang.Object,javax.xml.namespace.QName,int,short)
        generatedSetterHelperImpl(xnull, NULL$6, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);

BTW, how to obtain the 2.4.1 version? I can't see such a tag or revision in the SVN.





      was (Author: timothomas@web.de):
    When's this fix going into the repository? I just checked out the current sources, and I still this error when compiling the code for GML 3.1.1 or 3.2.1 :

ValueArrayPropertyTypeImpl.java:533: generatedSetterHelperImpl(org.apache.xmlbeans.XmlObject,javax.xml.namespace.QName,int,short) in org.apache.xmlbeans.impl.values.XmlObjectBase cannot be applied to (java.lang.Object,javax.xml.namespace.QName,int,short)
        generatedSetterHelperImpl(xnull, NULL$6, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);

BTW, how to obtain the 2.4.1 version? I can't see such a tag or revision in the SVN.




  
> GML 3.1.1 generated code fails to compile.
> ------------------------------------------
>
>                 Key: XMLBEANS-396
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-396
>             Project: XMLBeans
>          Issue Type: Bug
>    Affects Versions: Version 2.4.1 
>            Reporter: Chris Clark
>             Fix For: Version 2.4.1 
>
>
> After generating code for GML 3.1.1, the code fails to compile. The following compilation error is given: 
> generatedSetterHelperImpl(org.apache.xmlbeans.XmlObject,javax.xml.namespace.QName,int,short) in org.apache.xmlbeans.impl.values.XmlObjectBase cannot be applied to (java.lang.Object,javax.xml.namespace.QName,int,short) generatedSetterHelperImpl(xnull, NULL$26, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
> It appears this error is a result of changes made to SchemaTypeCodePrinter.java. The call generatedSetterHelperImpl is called in 2 places in this class, however the second place is surrounded by an "if ( isobj )" which appears to generate invalid code. I believe this code needs to be updated to reflect the  "if ( xmltype && !isSubstGroup )" as in the first place the code is called.
> This code change fixed the issue with GML 3.1.1 gode generation. Someone more familiar with the code should verify and commit this change.

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


[jira] Resolved: (XMLBEANS-396) GML 3.1.1 generated code fails to compile.

Posted by "Cezar Andrei (JIRA)" <xm...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XMLBEANS-396?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Cezar Andrei resolved XMLBEANS-396.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: Version 2.4.1 

Committed with revision 745290. Thanks Chris for your contribution.

> GML 3.1.1 generated code fails to compile.
> ------------------------------------------
>
>                 Key: XMLBEANS-396
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-396
>             Project: XMLBeans
>          Issue Type: Bug
>    Affects Versions: Version 2.4.1 
>            Reporter: Chris Clark
>             Fix For: Version 2.4.1 
>
>
> After generating code for GML 3.1.1, the code fails to compile. The following compilation error is given: 
> generatedSetterHelperImpl(org.apache.xmlbeans.XmlObject,javax.xml.namespace.QName,int,short) in org.apache.xmlbeans.impl.values.XmlObjectBase cannot be applied to (java.lang.Object,javax.xml.namespace.QName,int,short) generatedSetterHelperImpl(xnull, NULL$26, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
> It appears this error is a result of changes made to SchemaTypeCodePrinter.java. The call generatedSetterHelperImpl is called in 2 places in this class, however the second place is surrounded by an "if ( isobj )" which appears to generate invalid code. I believe this code needs to be updated to reflect the  "if ( xmltype && !isSubstGroup )" as in the first place the code is called.
> This code change fixed the issue with GML 3.1.1 gode generation. Someone more familiar with the code should verify and commit this change.

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


[jira] Commented: (XMLBEANS-396) GML 3.1.1 generated code fails to compile.

Posted by "Anna Gimbitskaya (JIRA)" <xm...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XMLBEANS-396?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12869551#action_12869551 ] 

Anna Gimbitskaya commented on XMLBEANS-396:
-------------------------------------------

Dear Andrei!

i am using the xmlbeans 2.5.0 and having the same problems with GML as described above.

I checked the same class as above, and notice, that no changes done, as it should be according above.

Thus i did them manually: 

if ( xmltype && !isSubstGroup ) should be in both placed

now GML generated without errors.

I feel it is important to change, as i tried the current release for GML, SensorML and sensorObservation schemas, for all of them the same error.
With the updated code all schemas works perfect!

with respect,
Anna Gimbitskaya

> GML 3.1.1 generated code fails to compile.
> ------------------------------------------
>
>                 Key: XMLBEANS-396
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-396
>             Project: XMLBeans
>          Issue Type: Bug
>    Affects Versions: Version 2.4.1 
>            Reporter: Chris Clark
>             Fix For: Version 2.4.1 
>
>
> After generating code for GML 3.1.1, the code fails to compile. The following compilation error is given: 
> generatedSetterHelperImpl(org.apache.xmlbeans.XmlObject,javax.xml.namespace.QName,int,short) in org.apache.xmlbeans.impl.values.XmlObjectBase cannot be applied to (java.lang.Object,javax.xml.namespace.QName,int,short) generatedSetterHelperImpl(xnull, NULL$26, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
> It appears this error is a result of changes made to SchemaTypeCodePrinter.java. The call generatedSetterHelperImpl is called in 2 places in this class, however the second place is surrounded by an "if ( isobj )" which appears to generate invalid code. I believe this code needs to be updated to reflect the  "if ( xmltype && !isSubstGroup )" as in the first place the code is called.
> This code change fixed the issue with GML 3.1.1 gode generation. Someone more familiar with the code should verify and commit this change.

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