test/langtools/tools/javac/flow/tests/TestCaseForEach.java
author vromero
Wed, 06 Dec 2017 13:36:34 -0500
changeset 48082 d8c634b016c6
parent 47864 e29ae57c6421
child 48504 25732365355c
permissions -rw-r--r--
8192885: Compiler in JDK 10-ea+33 misses to include entry in LineNumberTable for goto instruction of foreach loop Reviewed-by: mcimadamore

/* /nodynamiccopyright/ */

public class TestCaseForEach {

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