Sat, 14 Sep 2013 19:04:47 +0100
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 TestCaseConditional { |
aoqi@0 | 4 | |
aoqi@0 | 5 | @AliveRange(varName="o", bytecodeStart=5, bytecodeLength=33) |
aoqi@0 | 6 | @AliveRange(varName="oo", bytecodeStart=23, bytecodeLength=15) |
aoqi@0 | 7 | void m(String[] args) { |
aoqi@0 | 8 | Boolean o; |
aoqi@0 | 9 | Boolean oo = ((o = Boolean.TRUE).booleanValue()) ? |
aoqi@0 | 10 | o = Boolean.TRUE : |
aoqi@0 | 11 | Boolean.FALSE; |
aoqi@0 | 12 | oo.hashCode(); |
aoqi@0 | 13 | o = Boolean.FALSE; |
aoqi@0 | 14 | o.hashCode(); |
aoqi@0 | 15 | } |
aoqi@0 | 16 | } |