test/tools/javac/lambda/ByteCodeTest.java

Print this page

        

@@ -120,11 +120,11 @@
           return f;
     }
 
     static File compile(File f) {
         int rc = com.sun.tools.javac.Main.compile(new String[] {
-                "-source", "1.8", "-g", f.getPath() });
+                "-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");
     }