test/tools/javac/flow/tests/TestCaseForEach.java

Sat, 14 Sep 2013 19:04:47 +0100

author
vromero
date
Sat, 14 Sep 2013 19:04:47 +0100
changeset 2027
4932bb04c4b8
parent 0
959103a6100f
child 2709
dca7f60e618d
permissions
-rw-r--r--

7047734: javac, the LVT is not generated correctly in several scenarios
Reviewed-by: jjg, mcimadamore

aoqi@0 1 /* /nodynamiccopyright/ */
aoqi@0 2
aoqi@0 3 public class TestCaseForEach {
aoqi@0 4
aoqi@0 5 @AliveRange(varName="o", bytecodeStart=25, bytecodeLength=8)
aoqi@0 6 @AliveRange(varName="o", bytecodeStart=39, bytecodeLength=1)
aoqi@0 7 void m(String[] args) {
aoqi@0 8 Object o;
aoqi@0 9 for (String s : args) {
aoqi@0 10 o = "";
aoqi@0 11 o.hashCode();
aoqi@0 12 }
aoqi@0 13 o = "";
aoqi@0 14 }
aoqi@0 15 }

mercurial