--- old/src/share/classes/com/sun/tools/javac/code/Source.java 2009-12-27 19:02:15.000000000 +0100 +++ new/src/share/classes/com/sun/tools/javac/code/Source.java 2009-12-27 19:02:15.000000000 +0100 @@ -168,6 +168,12 @@ public boolean allowStringsInSwitch() { return compareTo(JDK1_7) >= 0; } + public boolean allowFunctionType() { + return compareTo(JDK1_7) >= 0; + } + public boolean allowLambda() { + return compareTo(JDK1_7) >= 0; + } public static SourceVersion toSourceVersion(Source source) { switch(source) { case JDK1_2: