Hi Diana,

I believe this issue has been fixed in the CVS version.

Please try that. Information on our CVS server is available on the
website.

Thanks,

--Keith

"D. K. Smetters" wrote:
> 
> I've been using the source generator in 0.9.2 for months with great
> success.
> This morning I moved to 0.9.3.9 to get around a bug in 0.9.2, and have run
> into an apparent change in simpleType handling that is causing me major
> headaches.
> I'm using an element classmapping for all this.
> 
> Given a type definition:
> <xsd:simpleType name="FooType">
>    <xsd:restriction base="xsd:binary">
>        <xsd:length value="20" />
>    </xsd:restriction>
> </xsd:simpleType>
> 
> And a complex type that uses that type:
> <xsd:complexType name="BarType">
>    <xsd:sequence>
>        <xsd:element name="Name" type="xsd:string" />
>        <xsd:element name="Foo" type="FooType" />
>    </xsd:sequence>
> </xsd:complexType>
> 
> Now, I understand that simple types aren't supposed to map to classes.
> Under
> both versions, I get a class called BarType. Under 0.9.2, the type of the
> _foo member is byte [], and the getters and setters take byte []s, and life
> is fine. But under 0.9.3.9, the type of the _foo member is Foo, but
> sourcegen
> doesn't generate a Foo.java. In both cases, the type of the _name member
> is java.lang.String.
> 
> Is there a way to either get 0.9.3.9 to go back to the old behavior, or
> barring that, to get it to generate the Foo type? Or have I missed
> something
> blazingly obvious?
> 
> thanks very much,
> --Diana
> 
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>         unsubscribe castor-dev

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to