lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler" <...@thetaphi.de>
Subject RE: [VOTE] Release of Apache Lucene 3.0.3 and 2.9.4 artifacts (take 1)
Date Sun, 28 Nov 2010 15:50:08 GMT
> Additionally i got a compiler warning when compiling benchmark:
> 
>     [javac] C:\Users\rmuir\workspace\2.9.4\lucene-
> 2.9.4\contrib\benchmark\src\java\org\apache\lucene\benchmark\bytask\utils\
> Algorithm.java:69:
> 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]           PerfTask task = (PerfTask) cnstr.newInstance(paramObj);

This one is easy to fix, the array is wrong typed - but its not a problem at all, as javac
does the right thing:

Line 60,61 must be:
    Class paramClass[] = {PerfRunData.class};
    Object paramObj[] = {runData};

Uwe


Mime
View raw message