Werner,
I've submitted it. Here's the link.

http://jira.codehaus.org/browse/CASTOR-1097

Regards,
Emir


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

> Thanks, Emir. Can you please create a new issue at 
> http://jira.codehaus.org, and (if possible) provide us with a 
> patch as well ? 
> 
> Werner
> 
> wg> -----Urspr�ngliche Nachricht-----
> wg> Von: [EMAIL PROTECTED] [EMAIL PROTECTED]
> wg> Gesendet: Montag, 02. Mai 2005 10:48
> wg> An: [email protected]
> wg> Betreff: Re: [castor-user] Help on example
> wg> 
> wg> 
> wg> I've found a discussion regarding the "null parameter 
> wg> waring" problem on sun's forum.
> wg> 
> wg> http://forum.java.sun.com/thread.jspa?threadID=592301&tstart=75
> wg> 
> wg> This is the warning:
> wg> >[javac] cast to java.lang.Object for a varargs call
> wg> >[javac] cast to java.lang.Object[] for a on-varargs call 
> wg> and to suppress this warning
> wg> 
> wg> The problem is that some of the reflection methods called 
> wg> (getConstructor(), invoke(), newInstance(),...) changed in 
> wg> 1.5 to take varargs and the cast of null is need as 
> wg> reported in the warning (to Object[]).
> wg> 
> wg> Regards,
> wg> Emir
> wg> 
> wg> 
> wg> 
> wg> 
> wg> ----- Original Message -----
> wg> From: Martin Gainty <[EMAIL PROTECTED]>
> wg> Date: Monday, May 2, 2005 0:50 am
> wg> Subject: Re: [castor-user] Help on example
> wg> 
> wg> > Hello-
> wg> > My apologies for the interrupting with a question which is 
> of a 
> wg> > puerile 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\castor\pwg> > 
> 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> >    [javac]
> wg> > 
> wg> C:\Castor\castor-0.9.6\src\castor-
> 0.9.6\src\main\org\exolab\castor\pwg> > 
> ersist\FieldMolder.java:267: warning: non-varargs call of varargs 
> wg> > methodwith 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 = rf._getSequence[ 
> i 
> wg> > ].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\castor\pwg> > 
> ersist\FieldMolder.java:274: warning: non-varargs call of varargs 
> wg> > methodwith 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 != null 
> && ! ( 
> wg> > (Boolean)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\castor\pwg> > 
> ersist\FieldMolder.java:277: warning: non-varargs call of varargs 
> wg> > methodwith 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 rf._getMethod.invoke( 
> wg> > object, null );
> wg> >    [javac]                                                   
>     
> wg> >  ^
> wg> >    [javac]
> wg> > 
> wg> C:\Castor\castor-0.9.6\src\castor-
> 0.9.6\src\main\org\exolab\castor\pwg> > 
> ersist\FieldMolder.java:331: warning: non-varargs call of varargs 
> wg> > methodwith 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 = rf._getSequence[ 
> i 
> wg> > ].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\castor\pwg> > 
> ersist\FieldMolder.java:345: warning: non-varargs call of varargs 
> wg> > methodwith 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._deleteMethod.invoke( 
> wg> > object, null );
> wg> >    [javac]                                                   
>     
> wg> >  ^
> wg> >    [javac]
> wg> > 
> wg> C:\Castor\castor-0.9.6\src\castor-
> 0.9.6\src\main\org\exolab\castor\pwg> > 
> ersist\FieldMolder.java:581: warning: non-varargs call of varargs 
> wg> > methodwith 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 call 
> and 
> wg> > to suppress
> wg> > thi
> wg> > s warning
> wg> >    [javac]                                 method = 
> wg> > javaClass.getMethod(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\castor\pwg> > 
> ersist\FieldMolder.java:590: warning: non-varargs call of varargs 
> wg> > methodwith 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 call 
> and 
> wg> > to 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\castor\pwg> > 
> ersist\FieldMolder.java:746: warning: non-varargs call of varargs 
> wg> > methodwith 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 call 
> and 
> wg> > to 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\castor\pwg> > 
> ersist\FieldMolder.java:756: warning: non-varargs call of varargs 
> wg> > methodwith 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 call 
> and 
> wg> > to 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\castor\pwg> > 
> ersist\FieldMolder.java:769: warning: non-varargs call of varargs 
> wg> > methodwith 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 call 
> and 
> wg> > to 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\castor\pwg> > 
> ersist\FieldMolder.java:777: warning: non-varargs call of varargs 
> wg> > methodwith 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 call 
> and 
> wg> > to suppress
> wg> > thi
> wg> > s warning
> wg> >    [javac]                         deleteMethod = 
> wg> > javaClass.getMethod(METHOD_D
> wg> > ELETE_PREFIX + capitalize( fieldMap.getName() ), null );
> wg> >    [javac]
> wg> >                                                 ^
> wg> >    [javac] Note: Some input files use unchecked or unsafe 
> wg> operations.
> wg> >    [javac] Note: Recompile with -Xlint:unchecked for details.
> wg> >    [javac] 1 error
> wg> >    [javac] 11 warnings
> wg> > 
> wg> > BUILD FAILED
> wg> > C:\Castor\castor-0.9.6\src\castor-0.9.6\src\build.xml:177: 
> The 
> wg> > followingerror o
> wg> > ccurred while executing this line:
> wg> > 
> wg> C:\Castor\castor-0.9.6\src\castor-0.9.6\src\build.xml:198: 
> Compile 
> wg> > failed;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> > > Martin,
> wg> > >
> wg> > > the sources for these files is to be found at 
> wg> > src/examples/myapp. If you
> wg> > used Ant with the build file provided by the source
> 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> > > >Guten Tag/Good Day to all
> wg> > > >
> wg> > > >I am attempting to compile the JDO example but cannot 
> locate 
> wg> > Category or
> wg> > > >ProductDetail or Computer classes
> wg> > > >
> wg> > > >I am new to Castor and just setting up the environment 
> for the 
> wg> > first 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 to 
> the 
> wg> > official> >business of Sender and is proprietary to Sender. 
> It is 
> wg> > confidential,legally
> wg> > > >privileged and protected by law. Sender does not own and 
> wg> > endorse any
> wg> > other
> wg> > > >content.
> wg> > > >(mobile) 617-852-7822
> wg> > > >(http)www.laconiadatasystems.com
> wg> > > >
> wg> > > >
> wg> > >
> wg> > >
> wg> > >
> wg> > >
> wg> > >
> wg> > 
> wg> > 
> wg> 
> wg> 
> wg> 
> 
>


Reply via email to