changeset 4142 | bd950c8f4fb3 |
parent 3895 | 3b3c2a1e5e8a |
child 4417 | fc5cc811d2dd |
--- a/langtools/src/share/classes/com/sun/tools/javac/code/Source.java Fri Oct 30 10:55:00 2009 -0700 +++ b/langtools/src/share/classes/com/sun/tools/javac/code/Source.java Mon Nov 02 21:36:59 2009 -0800 @@ -110,6 +110,9 @@ } /** Allow encoding errors, giving only warnings. */ + public boolean allowStringsInSwitch() { + return compareTo(JDK1_7) >= 0; + } public boolean allowEncodingErrors() { return compareTo(JDK1_6) < 0; }