Hi Mike,
I'm not sure what the problem is, however it sounds like a bug in the
SourceGenerator with respect to primitives within choices.
Try putting the primitivetowrapper property in castorbuilder.properties
(not castor.properties).
--Keith
Mike Kopack wrote:
Ok, I've gotten through my import issues and can now get the code to
generate.
When I try to compile the code though, I'm getting the following errors:
C:/project
files/GUAVA2/src/com/lmco/atl/guava/generated/shared/Repeat.java:270:
incompatible types
found : boolean
required: java.lang.Object
this._choiceValue = alertuser;
^
C:/project
files/GUAVA2/src/com/lmco/atl/guava/generated/shared/Repeat.java:282:
incompatible types
found : long
required: java.lang.Object
this._choiceValue = durationtime;
^
C:/project
files/GUAVA2/src/com/lmco/atl/guava/generated/shared/Repeat.java:304:
incompatible types
found : long
required: java.lang.Object
this._choiceValue = untiltime;
^
the schema fragment associated with the "repeat" element is:
<xs:element name="repeat">
<xs:annotation>
<xs:documentation>the repeat action</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:choice>
<xs:element ref="shared:alertuser"/>
<xs:element name="untiltime" type="xs:long"/>
<xs:element name="durationtime" type="xs:long"/>
</xs:choice>
<xs:attribute name="type">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="notifyuser"/>
<xs:enumeration value="abstime"/>
<xs:enumeration value="duration"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
(the alertuser is a type xs:boolean BTW)
I'm stumped! I've tried this with v 9.9.1, 1.0-M3 and M4. Same results.
I've also tried with both the primitivetowrapper option set to true and
false in castor.properties - no effect.
--Mike
-------------------------------------------------
If you wish to unsubscribe from this list, please send an empty message
to the following address:
[EMAIL PROTECTED]
-------------------------------------------------
-------------------------------------------------
If you wish to unsubscribe from this list, please
send an empty message to the following address:
[EMAIL PROTECTED]
-------------------------------------------------