Netbeans Generics Bug using FEST, Java? -
i have following non-generic method getting jlistfixture using fest:
public static jlistfixture getjlistfixturenongeneric(final framefixture frame) { return frame.list(new generictypematcher<myclass>(myclass.class) { @override protected boolean ismatching(myclass component) { return true; } }); }
i have following generic method getting jlistfixture using fest:
public static <t extends component> jlistfixture getjlistfixture(final framefixture frame, final class<t> t) { return frame.list(new generictypematcher<t>(t) { @override protected boolean ismatching(t component) { return true; } }); }
in netbeans 7.3, non-generic method compiles without error. generic method not. editor window not show compilation errors (no red lines @ line numbers). however, if try compile right-clicking on project , clicking 'test', following error:
an exception has occurred in compiler (1.7.0_21). please file bug @ java developer connection (http://java.sun.com/webapps/bugreport) after checking bug parade duplicates. include program , following diagnostic in report. thank you.
java.lang.assertionerror: missing type variable in clause t @ com.sun.tools.javac.util.richdiagnosticformatter.unique(richdiagnosticformatter.java:234) @ com.sun.tools.javac.util.richdiagnosticformatter.access$100(richdiagnosticformatter.java:67) @ com.sun.tools.javac.util.richdiagnosticformatter$richprinter.visittypevar(richdiagnosticformatter.java:384) @ com.sun.tools.javac.util.richdiagnosticformatter$richprinter.visittypevar(richdiagnosticformatter.java:326) ... c:\myproject\nbproject\build-impl.xml:1248: following error occurred while executing line: c:\myproject\nbproject\build-impl.xml:268: compile failed; see compiler error output details.
line 1248 in stacktrace corresponds j2seproject3 element below:
<target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test"> <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" processorpath="${javac.test.processorpath}" srcdir="${test.test.dir}"/> <copy todir="${build.test.classes.dir}"> <fileset dir="${test.test.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> </copy> </target>
line 268 in stacktrace points following below:
<javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
...
has encountered or know make work? this, in fact true bug?
Comments
Post a Comment