JDK-7151580 : Separate DA/DU logic from exception checking logic in Flow.java
  • Type: Sub-task
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 8
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: unknown
  • Submitted: 2012-03-06
  • Updated: 2012-09-28
  • Resolved: 2012-04-20
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 b34Fixed
Description
Flow.java performs both DA/DU and exception checking with a single visitor. this is bad for lambda, as we will need to perform exception analysis only (without DA/DU).

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

EVALUATION Flow should be refactored into two separated visitors, one for DA/DU, another for exception checking.
06-03-2012