test/tools/javac/T5105890.java

Print this page

        

*** 24,35 **** /* * @test * @bug 5105890 * @summary (codegen) constant folding broken for conditional operator * @author Peter von der Ah\u00e9 - * @compile -source 5 T5105890.java - * @run main T5105890 */ public class T5105890 { public static final String str1 = (false ? "YYY" : null ); public static final String str2 = (true ? null : "YYY" ); --- 24,33 ----