test/tools/javac/flow/tests/TestCaseConditional.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
permissions
-rw-r--r--

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

     1 /* /nodynamiccopyright/ */
     3 public class TestCaseConditional {
     5     @AliveRange(varName="o", bytecodeStart=5, bytecodeLength=33)
     6     @AliveRange(varName="oo", bytecodeStart=23, bytecodeLength=15)
     7     void m(String[] args) {
     8         Boolean o;
     9         Boolean oo = ((o = Boolean.TRUE).booleanValue()) ?
    10                 o = Boolean.TRUE :
    11                 Boolean.FALSE;
    12         oo.hashCode();
    13         o = Boolean.FALSE;
    14         o.hashCode();
    15     }
    16 }

mercurial