JDK-7175538 : Integrate efectively final check with DA/DU analysis
  • Type: Sub-task
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 8
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: unknown
  • Submitted: 2012-06-08
  • Updated: 2013-10-09
  • Resolved: 2012-08-10
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8 b52Fixed
Description
JDK 7 has a very simple definition of effectively final which is restricted to the scope of exception parameters. In the context of Project Lambda we need to enhance the notion of effectively final to cover all local variable declarations.

As a bonus, inner classes will be allowed to access variables that are deemed to be effectively final.

Comments
EVALUATION http://hg.openjdk.java.net/hsx/hotspot-comp/langtools/rev/e5cf1569d3a4
14-08-2012

EVALUATION http://hg.openjdk.java.net/hsx/hotspot-main/langtools/rev/e5cf1569d3a4
11-08-2012

SUGGESTED FIX A webrev of this fix is available at the following URL: http://hg.openjdk.java.net/jdk8/tl/langtools/rev/e5cf1569d3a4
03-08-2012

EVALUATION Will do - will require significant re-design of visitors in Flow.java
03-08-2012