diff -r 28d33fb9097f -r e04318f39f92 langtools/test/tools/javac/T8019486/WrongLNTForLambdaTest.java --- a/langtools/test/tools/javac/T8019486/WrongLNTForLambdaTest.java Thu Mar 31 14:56:33 2016 -0700 +++ b/langtools/test/tools/javac/T8019486/WrongLNTForLambdaTest.java Thu Mar 31 15:20:50 2016 -0700 @@ -27,12 +27,10 @@ * @summary javac, generates erroneous LVT for a test case with lambda code * @library /tools/lib * @modules jdk.compiler/com.sun.tools.javac.api - * jdk.compiler/com.sun.tools.javac.file * jdk.compiler/com.sun.tools.javac.main * jdk.compiler/com.sun.tools.javac.util * jdk.jdeps/com.sun.tools.classfile - * jdk.jdeps/com.sun.tools.javap - * @build ToolBox + * @build toolbox.ToolBox toolbox.JavacTask * @run main WrongLNTForLambdaTest */ @@ -45,6 +43,9 @@ import com.sun.tools.classfile.Method; import com.sun.tools.javac.util.Assert; +import toolbox.JavacTask; +import toolbox.ToolBox; + public class WrongLNTForLambdaTest { static final String testSource = @@ -152,7 +153,7 @@ } void compileTestClass() throws Exception { - tb.new JavacTask() + new JavacTask(tb) .sources(testSource) .run(); }