hg: jdk9/dev/langtools: 7196163: Project Coin: Allow effectively final variables to be used as resources in try-with-resources
jan.lahoda at oracle.com
jan.lahoda at oracle.com
Wed Nov 19 12:59:11 UTC 2014
Changeset: f62d01419621
Author: jlahoda
Date: 2014-11-19 13:46 +0100
URL: http://hg.openjdk.java.net/jdk9/dev/langtools/rev/f62d01419621
7196163: Project Coin: Allow effectively final variables to be used as resources in try-with-resources
Summary: Allowing final variables as operands to try-with-resources; also reviewed by Sergei Pikalev.
Reviewed-by: darcy, mcimadamore, vromero
! src/jdk.compiler/share/classes/com/sun/tools/javac/code/Kinds.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/code/Source.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Flow.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/parser/JavacParser.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/resources/compiler.properties
! test/tools/javac/TryWithResources/BadTwrSyntax.out
! test/tools/javac/TryWithResources/ResDeclOutsideTry.java
! test/tools/javac/TryWithResources/ResDeclOutsideTry.out
+ test/tools/javac/TryWithResources/TwrForVariable1.java
+ test/tools/javac/TryWithResources/TwrForVariable1.out
+ test/tools/javac/TryWithResources/TwrForVariable2.java
+ test/tools/javac/TryWithResources/TwrForVariable2.out
+ test/tools/javac/TryWithResources/TwrForVariable3.java
+ test/tools/javac/TryWithResources/TwrForVariable3.out
+ test/tools/javac/TryWithResources/TwrForVariable4.java
+ test/tools/javac/TryWithResources/TwrForVariable4.out
+ test/tools/javac/diags/examples/TryWithResourcesExprEffectivelyFinalVar.java
+ test/tools/javac/diags/examples/TryWithResourcesExprNeedsVar.java
+ test/tools/javac/diags/examples/VarInTryWithResourcesNotSupportedInSource.java
More information about the jdk9-dev-changes
mailing list