Werner,
I'm having the exactly same problem with 1.5 and latest cvs snapshot.
Is there a way to say to ant to specify -source 1.3 flag to javac or something 
similar?!
Or the only possibility is to switch to 1.4?

BTW, another problem is that the 'enum' is used as a identifier and since 1.5 
it's java keyword and compiler is complaining about.
Could we do some 'refactoring' and change that?

Regards,
Emir


----- Original Message -----
From: Werner Guttmann <[EMAIL PROTECTED]>
Date: Monday, May 2, 2005 9:50 am
Subject: AW: [castor-user] Help on example

> Martin,
> 
> your assumption is wrong. 0.9.6RC3 happens to be the third and 
> final release candidate of the 0.9.6 release, iow a preview 
> release before we shipped 0.9.6. To obtain the latest (source) 
> code from CVS, please consult with 
> http://castor.codehaus.org/cvs.html or use FishEye at 
> http://cvs.castor.codehaus.org/viewrep/~tarball=zip/castor/castor/castor.zip 
> to obtain a ZIP file of the current code in the repository.
> 
> Werner
> 
> wg> -----Urspr�ngliche Nachricht-----
> wg> Von: Martin Gainty [EMAIL PROTECTED]
> wg> Gesendet: Montag, 02. Mai 2005 01:37
> wg> An: [email protected]
> wg> Betreff: Re: [castor-user] Help on example
> wg> 
> wg> 
> wg> same error using the latest cvs (assuming that is 0.9.6RC3)
> wg> think I'll drop to 1.4 and try again-
> wg> Many Thanks/Danke
> wg> Martin-
> wg> ----- Original Message -----
> wg> From: "Ralf Joachim" <[EMAIL PROTECTED]>
> wg> To: <[email protected]>
> wg> Sent: Sunday, May 01, 2005 7:15 PM
> wg> Subject: Re: [castor-user] Help on example
> wg> 
> wg> 
> wg> > Hi Martin,
> wg> >
> wg> > it seams you hit some compilation problems castor had 
> wg> with Java5 at
> wg> > release 0.9.6. You may swith back to java 1.4 or use  the 
> wg> current cvs
> wg> > snapshot where this problems had been resolved.
> wg> >
> wg> > Ralf
> wg> >
> wg> >
> wg> > Martin Gainty schrieb:
> wg> >
> wg> > >Hello-
> wg> > >My apologies for the interrupting with a question which 
> wg> is of a puerile
> wg> and
> wg> > >basic nature but..
> wg> > >I am experiencing some difficulty compiling these classes
> wg> > >apparently the ant javac compiler doesnt understand null?
> wg> > >Any recommendations to get
> wg> > >ant compile.examples
> wg> > >to successfully compile ???
> wg> > >
> wg> > >Thanks/Vielen Danke
> wg> > >
> wg> > >compile.jdo:
> wg> > >    [javac] Compiling 33 source files to
> wg> > >C:\Castor\castor-0.9.6\src\castor-0.9.6
> wg> > >\build\classes
> wg> > >    [javac]
> wg> > 
> wg> >C:\Castor\castor-0.9.6\src\castor-0.9.6\src\main\org\exolab
> wg> \castor\p
> wg> > >ersist\ClassMolder.java:1102: 
> compareTo(java.math.BigDecimal) in
> wg> > >java.math.BigDe
> wg> > >cimal cannot be applied to (java.lang.Object)
> wg> > >    [javac]         if ( (o1 instanceof 
> java.math.BigDecimal) &&
> wg> > >((java.math.Big
> wg> > >Decimal) o1).compareTo(o2) == 0) {
> wg> > >    [javac]                                              
> wg>         ^
> wg> > >    [javac]
> wg> > 
> wg> >C:\Castor\castor-0.9.6\src\castor-0.9.6\src\main\org\exolab
> wg> \castor\p
> wg> > >ersist\FieldMolder.java:267: warning: non-varargs call 
> wg> of varargs method
> wg> > >with in
> wg> > >exact argument type for last parameter;
> wg> > >    [javac] cast to java.lang.Object for a varargs call
> wg> > >    [javac] cast to java.lang.Object[] for a non-varargs 
> wg> call and to
> wg> > >suppress th
> wg> > >is warning
> wg> > >    [javac]                         object = 
> wg> rf._getSequence[ i ].invoke(
> wg> > >object
> wg> > >, null );
> wg> > >    [javac]
> wg> > >  ^
> wg> > >    [javac]
> wg> > 
> wg> >C:\Castor\castor-0.9.6\src\castor-0.9.6\src\main\org\exolab
> wg> \castor\p
> wg> > >ersist\FieldMolder.java:274: warning: non-varargs call 
> wg> of varargs method
> wg> > >with in
> wg> > >exact argument type for last parameter;
> wg> > >    [javac] cast to java.lang.Object for a varargs call
> wg> > >    [javac] cast to java.lang.Object[] for a non-varargs 
> wg> call and to
> wg> > >suppress th
> wg> > >is warning
> wg> > >    [javac]                         ( rf._hasMethod != 
> wg> null && ! (
> wg> (Boolean)
> wg> > >rf.
> wg> > >_hasMethod.invoke( object, null ) ).booleanValue() ) )
> wg> > >    [javac]
> wg> > >                           ^
> wg> > >    [javac]
> wg> > 
> wg> >C:\Castor\castor-0.9.6\src\castor-0.9.6\src\main\org\exolab
> wg> \castor\p
> wg> > >ersist\FieldMolder.java:277: warning: non-varargs call 
> wg> of varargs method
> wg> > >with in
> wg> > >exact argument type for last parameter;
> wg> > >    [javac] cast to java.lang.Object for a varargs call
> wg> > >    [javac] cast to java.lang.Object[] for a non-varargs 
> wg> call and to
> wg> > >suppress th
> wg> > >is warning
> wg> > >    [javac]                     return 
> wg> rf._getMethod.invoke( object,
> wg> null );
> wg> > >    [javac]                                              
> wg>             ^
> wg> > >    [javac]
> wg> > 
> wg> >C:\Castor\castor-0.9.6\src\castor-0.9.6\src\main\org\exolab
> wg> \castor\p
> wg> > >ersist\FieldMolder.java:331: warning: non-varargs call 
> wg> of varargs method
> wg> > >with in
> wg> > >exact argument type for last parameter;
> wg> > >    [javac] cast to java.lang.Object for a varargs call
> wg> > >    [javac] cast to java.lang.Object[] for a non-varargs 
> wg> call and to
> wg> > >suppress th
> wg> > >is warning
> wg> > >    [javac]                         object = 
> wg> rf._getSequence[ i ].invoke(
> wg> > >object
> wg> > >, null );
> wg> > >    [javac]
> wg> > >  ^
> wg> > >    [javac]
> wg> > 
> wg> >C:\Castor\castor-0.9.6\src\castor-0.9.6\src\main\org\exolab
> wg> \castor\p
> wg> > >ersist\FieldMolder.java:345: warning: non-varargs call 
> wg> of varargs method
> wg> > >with in
> wg> > >exact argument type for last parameter;
> wg> > >    [javac] cast to java.lang.Object for a varargs call
> wg> > >    [javac] cast to java.lang.Object[] for a non-varargs 
> wg> call and to
> wg> > >suppress th
> wg> > >is warning
> wg> > >    [javac]                         
> wg> rf._deleteMethod.invoke( object,
> wg> null );
> wg> > >    [javac]                                              
> wg>             ^
> wg> > >    [javac]
> wg> > 
> wg> >C:\Castor\castor-0.9.6\src\castor-0.9.6\src\main\org\exolab
> wg> \castor\p
> wg> > >ersist\FieldMolder.java:581: warning: non-varargs call 
> wg> of varargs method
> wg> > >with in
> wg> > >exact argument type for last parameter;
> wg> > >    [javac] cast to java.lang.Class for a varargs call
> wg> > >    [javac] cast to java.lang.Class[] for a non-varargs 
> wg> call and to
> wg> suppress
> wg> > >thi
> wg> > >s warning
> wg> > >    [javac]                                 method = 
> wg> javaClass.getMethod(
> wg> > >method
> wg> > >Name, null );
> wg> > >    [javac]
> wg> > >      ^
> wg> > >    [javac]
> wg> > 
> wg> >C:\Castor\castor-0.9.6\src\castor-0.9.6\src\main\org\exolab
> wg> \castor\p
> wg> > >ersist\FieldMolder.java:590: warning: non-varargs call 
> wg> of varargs method
> wg> > >with in
> wg> > >exact argument type for last parameter;
> wg> > >    [javac] cast to java.lang.Class for a varargs call
> wg> > >    [javac] cast to java.lang.Class[] for a non-varargs 
> wg> call and to
> wg> suppress
> wg> > >thi
> wg> > >s warning
> wg> > >    [javac]                             method = 
> wg> javaClass.getMethod(
> wg> > >methodName
> wg> > >, null );
> wg> > >    [javac]
> wg> > >  ^
> wg> > >    [javac]
> wg> > 
> wg> >C:\Castor\castor-0.9.6\src\castor-0.9.6\src\main\org\exolab
> wg> \castor\p
> wg> > >ersist\FieldMolder.java:746: warning: non-varargs call 
> wg> of varargs method
> wg> > >with in
> wg> > >exact argument type for last parameter;
> wg> > >    [javac] cast to java.lang.Class for a varargs call
> wg> > >    [javac] cast to java.lang.Class[] for a non-varargs 
> wg> call and to
> wg> suppress
> wg> > >thi
> wg> > >s warning
> wg> > >    [javac]                     
> wg> _defaultReflectService._createMethod =
> wg> > >javaClass
> wg> > >getMethod( fieldMap.getCreateMethod(), null );
> wg> > >    [javac]
> wg> > >                                        ^
> wg> > >    [javac]
> wg> > 
> wg> >C:\Castor\castor-0.9.6\src\castor-0.9.6\src\main\org\exolab
> wg> \castor\p
> wg> > >ersist\FieldMolder.java:756: warning: non-varargs call 
> wg> of varargs method
> wg> > >with in
> wg> > >exact argument type for last parameter;
> wg> > >    [javac] cast to java.lang.Class for a varargs call
> wg> > >    [javac] cast to java.lang.Class[] for a non-varargs 
> wg> call and to
> wg> suppress
> wg> > >thi
> wg> > >s warning
> wg> > >    [javac]                     method = javaClass.getMethod(
> wg> > >METHOD_CREATE_PREF
> wg> > >IX + capitalize( fieldMap.getName() ), null );
> wg> > >    [javac]
> wg> > >                                       ^
> wg> > >    [javac]
> wg> > 
> wg> >C:\Castor\castor-0.9.6\src\castor-0.9.6\src\main\org\exolab
> wg> \castor\p
> wg> > >ersist\FieldMolder.java:769: warning: non-varargs call 
> wg> of varargs method
> wg> > >with in
> wg> > >exact argument type for last parameter;
> wg> > >    [javac] cast to java.lang.Class for a varargs call
> wg> > >    [javac] cast to java.lang.Class[] for a non-varargs 
> wg> call and to
> wg> suppress
> wg> > >thi
> wg> > >s warning
> wg> > >    [javac]                     hasMethod = 
> javaClass.getMethod(wg> > >METHOD_HAS_PREF
> wg> > >IX + capitalize( fieldMap.getName() ), null );
> wg> > >    [javac]
> wg> > >                                       ^
> wg> > >    [javac]
> wg> > 
> wg> >C:\Castor\castor-0.9.6\src\castor-0.9.6\src\main\org\exolab
> wg> \castor\p
> wg> > >ersist\FieldMolder.java:777: warning: non-varargs call 
> wg> of varargs method
> wg> > >with in
> wg> > >exact argument type for last parameter;
> wg> > >    [javac] cast to java.lang.Class for a varargs call
> wg> > >    [javac] cast to java.lang.Class[] for a non-varargs 
> wg> call and to
> wg> suppress
> wg> > >thi
> wg> > >s warning
> wg> > >    [javac]                         deleteMethod = 
> wg> javaClass.getMethod(
> wg> > >METHOD_D
> wg> > >ELETE_PREFIX + capitalize( fieldMap.getName() ), null );
> wg> > >    [javac]
> wg> > >                                                 ^
> wg> > >    [javac] Note: Some input files use unchecked or 
> wg> unsafe operations.
> wg> > >    [javac] Note: Recompile with -Xlint:unchecked for details.
> wg> > >    [javac] 1 error
> wg> > >    [javac] 11 warnings
> wg> > >
> wg> > >BUILD FAILED
> wg> > 
> wg> >C:\Castor\castor-0.9.6\src\castor-0.9.6\src\build.xml:177: 
> wg> The following
> wg> > >error o
> wg> > >ccurred while executing this line:
> wg> > 
> wg> >C:\Castor\castor-0.9.6\src\castor-0.9.6\src\build.xml:198: 
> Compilewg> failed;
> wg> > >see t
> wg> > >he compiler error output for details.
> wg> > >
> wg> > >Total time: 3 seconds
> wg> > >
> wg> > >----- Original Message -----
> wg> > >From: "Werner Guttmann" <[EMAIL PROTECTED]>
> wg> > >To: <[email protected]>
> wg> > >Sent: Saturday, April 30, 2005 3:04 PM
> wg> > >Subject: Re: [castor-user] Help on example
> wg> > >
> wg> > >
> wg> > >
> wg> > >
> wg> > >>Martin,
> wg> > >>
> wg> > >>the sources for these files is to be found at 
> wg> src/examples/myapp. If you
> wg> > >>
> wg> > >>
> wg> > >used Ant with the build file provided by the source
> wg> > >
> wg> > >
> wg> > >>distribution, there's a target that automates building 
> wg> the samples.
> wg> > >>
> wg> > >>Regards
> wg> > >>Werner
> wg> > >>
> wg> > >>On Sat, 30 Apr 2005 13:30:29 -0400, Martin Gainty wrote:
> wg> > >>
> wg> > >>
> wg> > >>
> wg> > >>>Guten Tag/Good Day to all
> wg> > >>>
> wg> > >>>I am attempting to compile the JDO example but cannot 
> wg> locate Category
> wg> or
> wg> > >>>ProductDetail or Computer classes
> wg> > >>>
> wg> > >>>I am new to Castor and just setting up the environment 
> wg> for the first
> wg> time
> wg> > >>>
> wg> > >>>Many Thanks/Vielen Danke
> wg> > >>>
> wg> > >>>Martin Gainty
> wg> > >>>001-617-852-7822
> wg> > >>>______________________________________________
> wg> > >>>Disclaimer and confidentiality note
> wg> > >>>Everything in this e-mail and any attachments relating 
> wg> to the official
> wg> > >>>business of Sender and is proprietary to Sender. It is 
> wg> confidential,
> wg> > >>>
> wg> > >>>
> wg> > >legally
> wg> > >
> wg> > >
> wg> > >>>privileged and protected by law. Sender does not own 
> wg> and endorse any
> wg> > >>>
> wg> > >>>
> wg> > >other
> wg> > >
> wg> > >
> wg> > >>>content.
> wg> > >>>(mobile) 617-852-7822
> wg> > >>>(http)www.laconiadatasystems.com
> wg> > >>>
> wg> > >>>
> wg> >
> wg> 
> 
>


Reply via email to