[ http://issues.apache.org/jira/browse/JAXME-50?page=all ]
Jochen Wiedmann updated JAXME-50:
---------------------------------
Attachment: jaxme50-0.4.patch
jaxme50-HEAD.patch
Please verify, whether the attached patch works. (Nice example for cooperation,
this bug, btw. :-)
> The generation of isSet methods generates wrong code
> ----------------------------------------------------
>
> Key: JAXME-50
> URL: http://issues.apache.org/jira/browse/JAXME-50
> Project: JaxMe
> Type: Bug
> Components: JaxMe Core
> Versions: current (nightly)
> Reporter: Nacho G. Mac Dowell
> Priority: Minor
> Attachments: isSet.xsd, issetbug.xsd, jaxme50-0.4.patch, jaxme50-HEAD.patch
>
> Geert Barentsen wrote:
> The generation of isSet methods (<jaxb:globalBindings
> generateIsSetMethod="true" />) seems to be wrong in nested classes because of
> an extra underscore. Below is a short example of wrongly generated code: both
> "_period" and "period" are used as a member. Any thoughts?
> public class VisualTypeImpl implements net.imo.www.VisualType {
> public static class PeriodlistTypeImpl implements
> net.imo.www.VisualType.PeriodlistType {
> private java.util.List period = new java.util.ArrayList();
> public java.util.List getPeriod() {
> return period;
> }
> public boolean isSetPeriod() {
> return (_period != null);
> }
> }
> ...
> }
> Generated from:
> <xsd:complexType name="VisualType">
> <xsd:all>
> <xsd:element name="periodlist" minOccurs="1" maxOccurs="1">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="period" type="VisualPeriodType"
> minOccurs="1" maxOccurs="unbounded" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> </xsd:all>
> ...
> </xsd:complexType>
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]