See: http://jira.codehaus.org/browse/CASTOR-2198
--aslam Werner Guttmann wrote: > > Can you please create a Jira issue at > > http://jira.codehaus.org/browse/CASTOR > > and attach a working (minimal) XML schema fragment so that we can > reproduce your problem ? > > Thanks in advance > Werner > > Bryan Ward wrote: >> yes, I set the property in castorbuilder.properties to >> >> org.exolab.castor.builder.javaVersion=5.0 >> >> when I comment that out, it generates and compiles fine, its just when I >> use the java 5.0 it creates that @override annotation that causes a >> compilation error (as described below). >> >> >> On 10/10/07, *Werner Guttmann* <[EMAIL PROTECTED] >> <mailto:[EMAIL PROTECTED]>> wrote: >> >> Are you on Java 5.0 ? If not, what versoin of Java are you using ? >> >> Werner >> >> Bryan Ward wrote: >> > Hi, >> > >> > I was hoping someone might be able to tell me what causes the >> castor >> > source generator to add the '@Override' annotation on a generated >> source >> > file. Currently my generated source will not compile stating >> that this >> > method: >> > >> > /** >> > * Returns the value of field 'accessMode'. >> > * >> > * @return the value of field 'AccessMode'. >> > */ >> > @Override() >> > public java.lang.String getAccessMode( >> > ) { >> > return this._accessMode; >> > } >> > >> > must override a superclass method (even though this generated >> class has >> > no superclass). The definition of accessMode in my schema looks >> like this: >> > >> > >> > <xs:element name="accessMode"> >> > >> > <xs:simpleType> >> > >> > <xs:restriction base="xs:string"> >> > >> > <xs:annotation> >> > >> > <xs:documentation xml:lang="en"> >> > Edifact representation: >> a1 >> > </xs:documentation> >> > >> > </xs:annotation> >> > >> > <xs:minLength value="1"/> >> > >> > <xs:maxLength value="1"/> >> > >> > </xs:restriction> >> > >> > </xs:simpleType> >> > >> > </xs:element> >> > >> > any help would be much appreciated. >> > >> > Cheers, >> > Bryan >> >> >> --------------------------------------------------------------------- >> 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 > > > -- View this message in context: http://www.nabble.com/XML---source-generation-creates-%40Override-that-causes-compilation-error-tf4596960.html#a13263957 Sent from the Castor - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email

