test/tools/javac/lambda/ByteCodeTest.java

Print this page

        

*** 120,130 **** return f; } static File compile(File f) { int rc = com.sun.tools.javac.Main.compile(new String[] { ! "-source", "1.8", "-g", f.getPath() }); if (rc != 0) throw new Error("compilation failed. rc=" + rc); String path = f.getPath(); return new File(path.substring(0, path.length() - 5) + ".class"); } --- 120,130 ---- return f; } static File compile(File f) { int rc = com.sun.tools.javac.Main.compile(new String[] { ! "-g", f.getPath() }); if (rc != 0) throw new Error("compilation failed. rc=" + rc); String path = f.getPath(); return new File(path.substring(0, path.length() - 5) + ".class"); }