test/tools/javac/flow/tests/TestCaseWhile.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

     1 /* /nodynamiccopyright/ */
     3 public class TestCaseWhile {
     5     @AliveRange(varName="o", bytecodeStart=9, bytecodeLength=5)
     6     @AliveRange(varName="o", bytecodeStart=20, bytecodeLength=1)
     7     void m(String[] args) {
     8         Object o;
     9         while (args[0] != null) {
    10             o = "";
    11             o.hashCode();
    12         }
    13         o = "";
    14     }
    15 }

mercurial