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 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 | } |