Sun changed the API of the Method class from 

public Object invoke(Object obj, Object[] args)

...to...

public Object invoke(Object obj, Object... args)

In either case, the behavior is the same. It is just a warning, not an
error, so things should work fine.

Larry


On 6/15/05, Pham Anh Tuan <[EMAIL PROTECTED]> wrote:
>  
>  
> 
> I got warning when I use JDK1.5 to compile BeanAction in
> ibatis\struts\BeanAction.java 
> 
> error: 
> 
> warning: non-varargs call of varargs method with inexact argument type for
> last parameter; 
> 
> 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] forward = (String) method.invoke(form, 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. 
> 
> What's wrong ... ? 
> 
> Help me 
> 
> Thank for ur reading 
> 
> Anh Tuan

Reply via email to