1/** 2 * @test /nodynamiccopyright/ 3 * @bug 8021112 4 * @summary Verify that \\@SuppressWarnings("unchecked") works correctly for lazy attrib values 5 * @modules jdk.compiler/com.sun.tools.javac.api 6 * jdk.compiler/com.sun.tools.javac.code 7 * jdk.compiler/com.sun.tools.javac.file 8 * jdk.compiler/com.sun.tools.javac.tree 9 * @build VerifySuppressWarnings 10 * @compile/ref=T8021112b.out -XDrawDiagnostics -Xlint:unchecked,deprecation,cast T8021112b.java 11 * @run main VerifySuppressWarnings T8021112b.java 12 */ 13 14public class T8021112b { 15 public static final String D1 = Dep.D; 16 public static final String D2 = ""; 17 public static final Object[] o = { 18 new Object() { 19 Dep d; 20 } 21 }; 22} 23 24@Deprecated class Dep { 25 public static final String D = T8021112b.D2; 26} 27