test/tools/javac/cast/BoxedArray.java

Print this page

        

*** 25,35 **** * @test * @bug 5014309 * @summary REGRESSION: compiler allows cast from Integer[] to int[] * @author gafter * ! * @compile/fail -source 1.5 BoxedArray.java */ public class BoxedArray { int[] a2; void f(Integer[] a1) { --- 25,35 ---- * @test * @bug 5014309 * @summary REGRESSION: compiler allows cast from Integer[] to int[] * @author gafter * ! * @compile/fail BoxedArray.java */ public class BoxedArray { int[] a2; void f(Integer[] a1) {