Yes, I have the "j2" option turned on, but since you already fixed this,
will this be of any help to you?

-----Original Message-----
From: Werner Guttmann [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 25, 2006 5:40 AM
To: [email protected]
Subject: RE: [castor-user] Compilation Error in Castor 1.0.4 Generated
Code

Yes, please. Just to make sure, are you by any chance using the "j2"
(alias "arraylist") field info factory during generation ? If so, I
think I knw where the problem is ....

Werner

> -----Original Message-----
> From: Romero, Carlo [mailto:[EMAIL PROTECTED] 
> Sent: Dienstag, 24. Oktober 2006 19:43
> To: [email protected]
> Subject: [castor-user] Compilation Error in Castor 1.0.4 
> Generated Code
> 
> Given this schema:
> 
>       <xsd:complexType name="Address">
>               <xsd:sequence>
>                       <xsd:element name="streetAddress"
> type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
>               </xsd:sequence>
>       </xsd:complexType>
> 
>       <xsd:complexType name="AdjustableDates">
>               <xsd:sequence>
>                       <xsd:element name="unadjustedDate"
> type="xsd:date" maxOccurs="unbounded" />
>               </xsd:sequence>
>       </xsd:complexType>
> 
> These files are produced.
> 
> AddressTypeDescriptor.java
> AddressType.java
> AdjustableDatesTypeDescriptor.java
> AdjustableDatesType.java
> 
> AddressType defines a method:
> 
>       public void removeAllStreetAddress();
> 
> but AddressTypeDescriptor tries to call:
> 
>       AddressType target = (AddressType) object;
>       target.clearStreetAddress();
> 
> I think the intent of AddressTypeDescriptor is to call
> removeAllStreetAddress() because this method actually calls 
> clear() on the encapsulated list, but somehow the call in 
> AddressTypeDescriptor is to clearStreetAddress(), which doesn't exist.
> 
> Let me know if I should raise this as an issue on jira. 
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 
> 
> 

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to