--- a/langtools/src/share/classes/com/sun/tools/javac/code/Source.java Tue Sep 15 12:20:55 2009 -0700
+++ b/langtools/src/share/classes/com/sun/tools/javac/code/Source.java Tue Sep 15 18:36:21 2009 -0700
@@ -159,6 +159,12 @@
public boolean allowTypeAnnotations() {
return compareTo(JDK1_7) >= 0;
}
+ public boolean allowBinaryLiterals() {
+ return compareTo(JDK1_7) >= 0;
+ }
+ public boolean allowUnderscoresInLiterals() {
+ return compareTo(JDK1_7) >= 0;
+ }
public static SourceVersion toSourceVersion(Source source) {
switch(source) {
case JDK1_2: