You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by Christian Trutz <ch...@smilebase.org> on 2004/12/16 19:57:10 UTC

Java v1.5.0

Hello,

i get this warning:

    [javac] Compiling 197 source files to /home/chris/Projekte/velocity/bin/classes
    [javac] /home/chris/Projekte/velocity/bin/src/org/apache/velocity/runtime/parser/node/PropertyExecutor.java:111:warning: non-varargs call of varargs method with inexact argument
    type for last parameter;
    [javac] cast to java.lang.Object for a varargs call
    [javac] cast to java.lang.Object[] for a non-varargs call
	    and to suppress this warning
    [javac]         return method.invoke(o, null);
    [javac]                                 ^
    [javac] Note: * uses or overrides a deprecated
		API.
    [javac] Note: Recompile with
	    	-Xlint:deprecation for details.
    [javac] Note: Some input files use
		unchecked or unsafe operations.
    [javac] Note: Recompile with
	    -Xlint:unchecked for details.
    [javac] 1 warning


when i:

cd build
ant jar

with:

javac -version
javac 1.5.0


Christian


					

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org


Re: Java v1.5.0

Posted by Will Glass-Husain <wg...@forio.com>.
If you can figure out a simple way of making this compile without warnings 
in both JDK 1.3/1.4 and JDK 1.5, I'll patch it.  (submit to Bugzilla).

WILL

----- Original Message ----- 
From: "Christian Trutz" <ch...@smilebase.org>
To: "Velocity Developers List" <ve...@jakarta.apache.org>
Sent: Thursday, December 16, 2004 2:12 PM
Subject: Re: Java v1.5.0


> Hi Will,
>
> On Thu, Dec 16, 2004 at 01:40:40PM -0800, Will Glass-Husain wrote:
>> It gives a warning, but does it compile correctly?
>
> YES, the compilation process is successfull and i think the
> velocity-dev.jar works fine (until now untested), i will use this jar
> the next days and report if something fails ...
>
> Christian
>
>>
>> WILL
>>
>> ----- Original Message ----- 
>> From: "Christian Trutz" <ch...@smilebase.org>
>> To: <ve...@jakarta.apache.org>
>> Sent: Thursday, December 16, 2004 10:57 AM
>> Subject: Java v1.5.0
>>
>>
>> >Hello,
>> >
>> >i get this warning:
>> >
>> >   [javac] Compiling 197 source files to
>> >/home/chris/Projekte/velocity/bin/classes
>> >   [javac]
>> >/home/chris/Projekte/velocity/bin/src/org/apache/velocity/runtime/parser/node/PropertyExecutor.java:111:warning:
>> >non-varargs call of varargs method with inexact argument
>> >   type for last parameter;
>> >   [javac] cast to java.lang.Object for a varargs call
>> >   [javac] cast to java.lang.Object[] for a non-varargs call
>> >    and to suppress this warning
>> >   [javac]         return method.invoke(o, null);
>> >   [javac]                                 ^
>> >   [javac] Note: * uses or overrides a deprecated
>> >API.
>> >   [javac] Note: Recompile with
>> >    -Xlint:deprecation for details.
>> >   [javac] Note: Some input files use
>> >unchecked or unsafe operations.
>> >   [javac] Note: Recompile with
>> >    -Xlint:unchecked for details.
>> >   [javac] 1 warning
>> >
>> >
>> >when i:
>> >
>> >cd build
>> >ant jar
>> >
>> >with:
>> >
>> >javac -version
>> >javac 1.5.0
>> >
>> >
>> >Christian
>> >
>> >
>> >
>> >
>> >---------------------------------------------------------------------
>> >To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
>> >For additional commands, e-mail: velocity-dev-help@jakarta.apache.org
>> >
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: velocity-dev-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-dev-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org


Re: Java v1.5.0

Posted by Christian Trutz <ch...@smilebase.org>.
Hi Will,

On Thu, Dec 16, 2004 at 01:40:40PM -0800, Will Glass-Husain wrote:
> It gives a warning, but does it compile correctly?

YES, the compilation process is successfull and i think the
velocity-dev.jar works fine (until now untested), i will use this jar
the next days and report if something fails ...

Christian

> 
> WILL
> 
> ----- Original Message ----- 
> From: "Christian Trutz" <ch...@smilebase.org>
> To: <ve...@jakarta.apache.org>
> Sent: Thursday, December 16, 2004 10:57 AM
> Subject: Java v1.5.0
> 
> 
> >Hello,
> >
> >i get this warning:
> >
> >   [javac] Compiling 197 source files to 
> >/home/chris/Projekte/velocity/bin/classes
> >   [javac] 
> >/home/chris/Projekte/velocity/bin/src/org/apache/velocity/runtime/parser/node/PropertyExecutor.java:111:warning: 
> >non-varargs call of varargs method with inexact argument
> >   type for last parameter;
> >   [javac] cast to java.lang.Object for a varargs call
> >   [javac] cast to java.lang.Object[] for a non-varargs call
> >    and to suppress this warning
> >   [javac]         return method.invoke(o, null);
> >   [javac]                                 ^
> >   [javac] Note: * uses or overrides a deprecated
> >API.
> >   [javac] Note: Recompile with
> >    -Xlint:deprecation for details.
> >   [javac] Note: Some input files use
> >unchecked or unsafe operations.
> >   [javac] Note: Recompile with
> >    -Xlint:unchecked for details.
> >   [javac] 1 warning
> >
> >
> >when i:
> >
> >cd build
> >ant jar
> >
> >with:
> >
> >javac -version
> >javac 1.5.0
> >
> >
> >Christian
> >
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: velocity-dev-help@jakarta.apache.org
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-dev-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org


Re: Java v1.5.0

Posted by Will Glass-Husain <wg...@forio.com>.
It gives a warning, but does it compile correctly?

WILL

----- Original Message ----- 
From: "Christian Trutz" <ch...@smilebase.org>
To: <ve...@jakarta.apache.org>
Sent: Thursday, December 16, 2004 10:57 AM
Subject: Java v1.5.0


> Hello,
>
> i get this warning:
>
>    [javac] Compiling 197 source files to 
> /home/chris/Projekte/velocity/bin/classes
>    [javac] 
> /home/chris/Projekte/velocity/bin/src/org/apache/velocity/runtime/parser/node/PropertyExecutor.java:111:warning: 
> non-varargs call of varargs method with inexact argument
>    type for last parameter;
>    [javac] cast to java.lang.Object for a varargs call
>    [javac] cast to java.lang.Object[] for a non-varargs call
>     and to suppress this warning
>    [javac]         return method.invoke(o, null);
>    [javac]                                 ^
>    [javac] Note: * uses or overrides a deprecated
> API.
>    [javac] Note: Recompile with
>     -Xlint:deprecation for details.
>    [javac] Note: Some input files use
> unchecked or unsafe operations.
>    [javac] Note: Recompile with
>     -Xlint:unchecked for details.
>    [javac] 1 warning
>
>
> when i:
>
> cd build
> ant jar
>
> with:
>
> javac -version
> javac 1.5.0
>
>
> Christian
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-dev-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org