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

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

author
aoqi
date
Wed, 27 Apr 2016 01:34:52 +0800
changeset 0
959103a6100f
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 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