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