1/* 2 * @test /nodynamiccopyright/ 3 * @bug 6979683 4 * @summary Verify that casts can narrow and unbox at the same time 5 * @author jrose 6 * 7 * @compile/fail/ref=TestCast6979683_BAD36.java.errlog -XDrawDiagnostics TestCast6979683_BAD36.java 8 */ 9 10public class TestCast6979683_BAD36 { 11 //... 12 //... 13 static int iconvBAD2(Comparable<Integer> o) { return o; } //BAD: cast needed 14 //... 15 //... 16 //... 17} 18 19