langtools/test/tools/javac/flow/tests/TestCaseForEach.java
author vromero
Sat, 14 Sep 2013 19:04:47 +0100
changeset 19941 8b91e8eb2d20
child 28330 d4bcdcac1211
permissions -rw-r--r--
7047734: javac, the LVT is not generated correctly in several scenarios Reviewed-by: jjg, mcimadamore

/* /nodynamiccopyright/ */

public class TestCaseForEach {

    @AliveRange(varName="o", bytecodeStart=25, bytecodeLength=8)
    @AliveRange(varName="o", bytecodeStart=39, bytecodeLength=1)
    void m(String[] args) {
        Object o;
        for (String s : args) {
            o = "";
            o.hashCode();
        }
        o = "";
    }
}