langtools/src/share/classes/com/sun/tools/javac/code/Source.java
changeset 6592 dc56420a69bc
parent 6148 3a8158299c51
child 6721 d92073844278
equal deleted inserted replaced
6591:a953c8c6b85e 6592:dc56420a69bc
   169         return compareTo(JDK1_7) >= 0;
   169         return compareTo(JDK1_7) >= 0;
   170     }
   170     }
   171     public boolean allowUnderscoresInLiterals() {
   171     public boolean allowUnderscoresInLiterals() {
   172         return compareTo(JDK1_7) >= 0;
   172         return compareTo(JDK1_7) >= 0;
   173     }
   173     }
   174     public boolean allowStringsInSwitch() {
   174     public boolean allowExoticIdentifiers() {
   175         return compareTo(JDK1_7) >= 0;
   175         return compareTo(JDK1_7) >= 0;
   176     }
   176     }
   177     // JSR 292: recognize @PolymorphicSignature on java/dyn names
   177     public boolean allowStringsInSwitch() {
   178     public boolean allowPolymorphicSignature() {
       
   179         return compareTo(JDK1_7) >= 0;
   178         return compareTo(JDK1_7) >= 0;
   180     }
   179     }
   181     public static SourceVersion toSourceVersion(Source source) {
   180     public static SourceVersion toSourceVersion(Source source) {
   182         switch(source) {
   181         switch(source) {
   183         case JDK1_2:
   182         case JDK1_2: