test/tools/javac/ConditionalArgTypes_2.java

Print this page

        

*** 26,36 **** * @bug 4312781 4881179 4949543 * @summary Verify that both branches of a conditional expression must agree in type. * @author maddox * * @compile/fail -source 1.4 ConditionalArgTypes_2.java ! * @compile -source 1.5 ConditionalArgTypes_2.java */ // This case was working before -- controlling expression is not a constant. class ConditionalArgTypes_2 { --- 26,36 ---- * @bug 4312781 4881179 4949543 * @summary Verify that both branches of a conditional expression must agree in type. * @author maddox * * @compile/fail -source 1.4 ConditionalArgTypes_2.java ! * @compile ConditionalArgTypes_2.java */ // This case was working before -- controlling expression is not a constant. class ConditionalArgTypes_2 {