langtools/test/tools/javac/flow/tests/TestCaseForEach.java
author vromero
Mon, 05 Jan 2015 17:35:48 -0800
changeset 28330 d4bcdcac1211
parent 19941 8b91e8eb2d20
permissions -rw-r--r--
8064857: javac generates LVT entry with length 0 for local variable Reviewed-by: mcimadamore, jjg

/* /nodynamiccopyright/ */

public class TestCaseForEach {

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