Mon, 11 Nov 2013 09:47:46 -0500
8027439: Compile-time error in the case of ((Integer[] & Serializable)new Integer[1]).getClass()
8027253: javac illegally accepts array as bound
Summary: backing out change allowing arrays in intersection types
Reviewed-by: vromero
emc@2187 | 1 | T6680106.java:11:25: compiler.err.type.found.req: T[], (compiler.misc.type.req.class) |
emc@2187 | 2 | T6680106.java:12:25: compiler.err.type.found.req: S[], (compiler.misc.type.req.class) |
emc@2187 | 3 | T6680106.java:12:40: compiler.err.type.found.req: T[], (compiler.misc.type.req.class) |
emc@2187 | 4 | T6680106.java:13:25: compiler.err.type.found.req: S[], (compiler.misc.type.req.class) |
emc@2187 | 5 | T6680106.java:13:40: compiler.err.type.found.req: U[], (compiler.misc.type.req.class) |
emc@2187 | 6 | T6680106.java:13:55: compiler.err.type.found.req: T[], (compiler.misc.type.req.class) |
emc@2187 | 7 | T6680106.java:14:30: compiler.err.type.found.req: T[], (compiler.misc.type.req.class) |
emc@2187 | 8 | T6680106.java:15:30: compiler.err.type.found.req: S[], (compiler.misc.type.req.class) |
emc@2187 | 9 | T6680106.java:15:50: compiler.err.type.found.req: T[], (compiler.misc.type.req.class) |
emc@2187 | 10 | T6680106.java:16:30: compiler.err.type.found.req: S[], (compiler.misc.type.req.class) |
emc@2187 | 11 | T6680106.java:16:50: compiler.err.type.found.req: U[], (compiler.misc.type.req.class) |
emc@2187 | 12 | T6680106.java:16:70: compiler.err.type.found.req: T[], (compiler.misc.type.req.class) |
emc@2187 | 13 | 12 errors |