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 Geert Barentsen <ge...@pandora.be> on 2005/05/06 03:36:22 UTC
isSet methods bug?
Hello all,
Please apologize me if I'm wrong --I'm new to jaxme-- but I think I ran
into a bug tonight. 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>
Many thanks,
Geert Barentsen
---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org
Re: isSet methods bug?
Posted by Jochen Wiedmann <jo...@gmail.com>.
Geert Barentsen wrote:
> Please apologize me if I'm wrong --I'm new to jaxme-- but I think I ran
> into a bug tonight. 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?
Could you please create a complete schema and attach it to the bug
report that Nacho has created? See
http://issues.apache.org/jira/browse/JAXME-50
As of now, I haven't fully understood what's wrong and the schema would
help me to do that faster.
Regards,
Jochen
---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org