[ImageJ-devel] javac Compiler error in imglib mpicbg.imglib.util.Utils

Curtis Rueden ctrueden at wisc.edu
Tue Mar 22 11:50:21 CDT 2011


Hi all,

This is fixed on the imglib2 branch now.

-Curtis

On Tue, Mar 22, 2011 at 11:41 AM, Grant B. Harris <gharris at mbl.edu> wrote:

>  There is a javac compiler error in imglib mpicbg.imglib.util.Utils.
>
> It spits out this: “type parameters of T cannot be determined; no unique
> maximal instance exists for type variable T with upper bounds
> T,java.lang.Object”
>
> The fix seems to be to add explicit casts (T[]) in the method
> createGaussianKernel1D:
>
> At line 525:
>
> gaussianKernel =  (T[]) genericArray( 3 ); //zero.createArray1D( 3 );
>
> and at line 551:
>
> gaussianKernel = (T[]) genericArray( kernelSize ); //zero.createArray1D(
> kernelSize );
>
> I keep my hands off imglib, so if someone would like to make this change
> and check that it is also OK with the Eclipse compiler, that would be great.
>
>
> _______________________________________________
> ImageJ-devel mailing list
> ImageJ-devel at imagejdev.org
> http://imagejdev.org/mailman/listinfo/imagej-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://imagej.net/pipermail/imagej-devel/attachments/20110322/1ad0cb9c/attachment.html>


More information about the ImageJ-devel mailing list