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

Wed, 27 Apr 2016 01:34:52 +0800

author
aoqi
date
Wed, 27 Apr 2016 01:34:52 +0800
changeset 0
959103a6100f
child 2709
dca7f60e618d
permissions
-rw-r--r--

Initial load
http://hg.openjdk.java.net/jdk8u/jdk8u/langtools/
changeset: 2573:53ca196be1ae
tag: jdk8u25-b17

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

mercurial