JDK-8065674 : javac generates incorrect LVT table for trivial cases
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 7-pool
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2014-11-21
  • Updated: 2015-05-18
  • Resolved: 2014-11-26
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 7
7u80 b04Fixed
Related Reports
Relates :  
Description
javac is generating an incorrect LVT table for code like:

public class Test {
    public Object m(int i) {
        Object c;
        switch (i) {
            case 0:
                Object o = null;
                if (o != null) {
                    return o;
                }
            case 1:
                Object s = null;
                c = null;
                break;
            default:
                throw new AssertionError("");
            }
        return c;
    }
}