And more importantly, what version of Java you are using, etc ? Werner
On Sat, 27 Aug 2005 11:54:12 -0500, Keith Visco wrote: >Bill, > >I just tried out your schema and the generated source code compiles fine >for me here using both "element" and "type" centric generation. Also, >all the Castor XML test cases are passing for me as well, including the >source generator test cases. > >Can you provide some more details with perhaps how you are invoking the >SourceGenerator, are you using a binding file, etc. > >Thanks, > >--Keith > >Bill Leng wrote: >> Cannot figure out how to enter the bug. However, anyone should be able >> to reproduce this bug. Just use the source generator to generate java >> source files from a XML schema and try to compile the java source files. >> The compile will fail. Here I attached an XML schema. >> >> thanks >> >> Bill >> >> Werner Guttmann wrote: >> >>> Bill, >>> >>> I think you'll have to wait for either Andrew and/or Keith to reply to >>> your questions/issue, as I am simply not familiar enough with Castor >>> XML. If you have a (minimal) replayable use case, please feel free to >>> create a new issue at http://jira.codehaus.org/browse/CASTOR and >>> attach your files. >>> >>> Thanks >>> Werner >>> >>> On Fri, 26 Aug 2005 09:16:31 -0500, Bill Leng wrote: >>> >>> >>>> Werner, >>>> >>>> Downloaded 0.9.9 and tried the source generator. Somehow, the >>>> generated Java source won't compile. Please see the attached error >>>> message. It seems to be related to the fix to the bug I brought up a >>>> few weeks ago. See the text from our previous email. >>>> >>>> >>>> thanks >>>> >>>> Bill >>>> >>>> >>>> Bill, >>>> >>>> The change was due to a bug fix for complexType inheritence in which >>>> the unmarshal() method signature cannot be overridden when extending >>>> a class. The easiest fix was to simply default to java.lang.Object. I >>>> checked in a patch that searches for the proper base type if the >>>> class extends another one instead of just defaulting to >>>> java.lang.Object. >>>> >>>> Hopefully this fixes the issue for you. Please try out the CVS >>>> version for testing purposes. >>>> >>>> Thanks, >>>> >>>> --Keith >>>> >>>> >>>> Werner Guttmann wrote: >>>> >>>>> Hi, >>>>> >>>>> A copy of the first Castor 0.9.9 milestone build has been placed at >>>>> the Codehaus >>> >>> >>> (http://dist.codehaus.org/castor/0.9.9). >>> >>>>> >>>>> This is a major feature release. For details about the features >>>>> added and the bugs fixed, please have a look at the >>> >>> >>> project >>> >>>>> roadmap (http://jira.codehaus.org/browse/CASTOR) and the release >>>>> notes (http://castor.codehaus.org/release- >>> >>> >>> notes.html). >>> >>>>> This milestone will be replaced by a second milestone within a week, >>>>> so please try this version and report any >>> >>> >>> regression >>> >>>>> issues (where applicable). >>>>> >>>>> Regards >>>>> Werner Guttmann >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> ------------------------------------------------- >>>>> 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] >>> ------------------------------------------------- >>> >> >> ------------------------------------------------------------------------ >> >> <?xml version="1.0" encoding="UTF-8"?> >> <!-- edited with XML Spy v3.5 NT (http://www.xmlspy.com) by user (Geobot) --> >> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> >> <xsd:element name="resourceDesc" type="ResourceDescriptionType"> >> <xsd:annotation> >> <xsd:documentation>XML Schema for Interchange Platform >> Resource Description </xsd:documentation> >> </xsd:annotation> >> </xsd:element> >> <xsd:complexType name="ResourceDescriptionType"> >> <xsd:sequence> >> <xsd:element name="name" type="AlphaNumString" >> minOccurs="0"/> >> <xsd:element name="description" type="xsd:string" >> minOccurs="0"/> >> <xsd:element name="id" type="xsd:integer" >> minOccurs="0"/> >> <xsd:element name="parentId" type="xsd:integer" >> minOccurs="0"/> >> <xsd:element name="accountId" type="xsd:integer" >> minOccurs="0"/> >> <xsd:element name="currentNodeId" type="xsd:integer" >> minOccurs="0"/> >> <xsd:element name="preferredNodeId" type="xsd:integer" >> minOccurs="0"/> >> <!-- adminStatus: LOCKED, UNLOCKED, type of >> AdminStatusString --> >> <xsd:element name="adminStatus" >> type="AdminStatusString" minOccurs="0"/> >> <!-- opStatus: UNLOADED, DISABLED, INACTIVE, ACTIVE, >> type of OpStatusString --> >> <xsd:element name="opStatus" type="OpStatusString" >> minOccurs="0"/> >> <xsd:element name="dateCreated" type="xsd:dateTime" >> minOccurs="0"/> >> <xsd:element name="ldoDesc" type="EmbeddedXmlType" >> minOccurs="0"/> >> <xsd:element name="config" type="EmbeddedXmlType" >> minOccurs="0"/> >> <xsd:element name="resourceLayout" >> type="EmbeddedXmlType" minOccurs="0"/> >> <!-- status: an info string that is displayed on config >> dialog of GAC --> >> <xsd:element name="status" type="xsd:string" >> minOccurs="0"/> >> <!-- loadedStatus: TRUE, FALSE --> >> <xsd:element name="loadedStatus" type="xsd:string" >> minOccurs="0"/> >> <xsd:element name="resourceVersion" type="xsd:string" >> minOccurs="0"/> >> <xsd:element name="resourceJar" type="xsd:string" >> minOccurs="0" maxOccurs="1" /> >> </xsd:sequence> >> <xsd:attribute name="connectable" type="xsd:boolean"/> >> </xsd:complexType> >> <xsd:simpleType name="AdminStatusString"> >> <xsd:restriction base="xsd:string"> >> <xsd:enumeration value="LOCKED"/> >> <xsd:enumeration value="UNLOCKED"/> >> </xsd:restriction> >> </xsd:simpleType> >> <xsd:simpleType name="OpStatusString"> >> <xsd:restriction base="xsd:string"> >> <xsd:enumeration value="UNLOADED"/> >> <xsd:enumeration value="DISABLED"/> >> <xsd:enumeration value="INACTIVE"/> >> <xsd:enumeration value="ACTIVE"/> >> </xsd:restriction> >> </xsd:simpleType> >> <xsd:simpleType name="AlphaNumString"> >> <xsd:restriction base="xsd:string"> >> <xsd:maxLength value="255"/> >> <xsd:pattern value="[\d\w\-_ ]*"/> >> </xsd:restriction> >> </xsd:simpleType> >> <xsd:simpleType name="EmbeddedXmlType"> >> <xsd:restriction base="xsd:string"/> >> </xsd:simpleType> >> </xsd:schema> >> >> >> ------------------------------------------------------------------------ >> >> ------------------------------------------------- >> 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] >------------------------------------------------- > ------------------------------------------------- If you wish to unsubscribe from this list, please send an empty message to the following address: [EMAIL PROTECTED] -------------------------------------------------

