> 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