I've just tried the CVS version. Unfortunately, it seems to make the 
problem
worse. Instead of ending up with a BarType containing a String member named
_name and a Foo member named _foo (with no Foo type being defined), I get a
BarType class with just a String member named _name. No mention of a foo 
member
at all.

Let me know if this is an easy fix and when to try it again, and I'll
re-pull from CVS. If it'll be a while, I'd better move back to 0.9.2
(that was just a 1-line bug...).

thanks,
--Diana

Keith Visco wrote:

>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
>

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

Reply via email to