----- "Bill Barker" <wbar...@wilshire.com> a écrit :

> I can't compile commons-math any longer due to the below errors.  It
> seems 
> that some 1.6 methods have creaped in.  I have no problem upgrading to
> 1.6 
> if that is what is necessary, but I thought 1.5 was the targeted
> version.

Yes, it is for now the targeted version.

> 
>     [javac] symbol  : method newInstance(java.lang.Class<capture of ?
> 
> extends org.apache.commons.math.FieldElement>,int,int)
>     [javac] location: class java.lang.reflect.Array
>     [javac]             (T[][]) 
> Array.newInstance(field.getZero().getClass(), rows, columns);
>     [javac]                          ^
>     [javac] symbol  : method newInstance(java.lang.Class<capture of ?
> 
> extends org.apache.commons.math.FieldElement>,int,int)
>     [javac] location: class java.lang.reflect.Array
>     [javac]         final T[][] d = (T[][]) 
> Array.newInstance(zero.getClass(), dimension, dimension);
>     [javac]                                      ^ 
> 

It's my fault. I used the newInstance(Class<T>, int ...) signature but in Java5 
it was still newInstance(Class<T>, int[]). I have fixed it in the subversion 
repository.

Thanks for the reports and sorry for the error,
Luc

> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
> For additional commands, e-mail: dev-h...@commons.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to