changeset 6148 | 3a8158299c51 |
parent 6030 | 8cb12024680d |
child 6592 | dc56420a69bc |
--- a/langtools/src/share/classes/com/sun/tools/javac/code/Source.java Thu Jul 15 16:31:56 2010 +0100 +++ b/langtools/src/share/classes/com/sun/tools/javac/code/Source.java Fri Jul 16 19:35:24 2010 -0700 @@ -159,6 +159,9 @@ public boolean enforceMandatoryWarnings() { return compareTo(JDK1_5) >= 0; } + public boolean allowTryWithResources() { + return compareTo(JDK1_7) >= 0; + } public boolean allowTypeAnnotations() { return compareTo(JDK1_7) >= 0; }