test/tools/javac/generics/typevars/6680106/T6680106.out

Mon, 11 Nov 2013 09:47:46 -0500

author
emc
date
Mon, 11 Nov 2013 09:47:46 -0500
changeset 2187
4788eb38cac5
parent 2079
de1c5dbe6c28
child 2525
2eb010b6cb22
permissions
-rw-r--r--

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

     1 T6680106.java:11:25: compiler.err.type.found.req: T[], (compiler.misc.type.req.class)
     2 T6680106.java:12:25: compiler.err.type.found.req: S[], (compiler.misc.type.req.class)
     3 T6680106.java:12:40: compiler.err.type.found.req: T[], (compiler.misc.type.req.class)
     4 T6680106.java:13:25: compiler.err.type.found.req: S[], (compiler.misc.type.req.class)
     5 T6680106.java:13:40: compiler.err.type.found.req: U[], (compiler.misc.type.req.class)
     6 T6680106.java:13:55: compiler.err.type.found.req: T[], (compiler.misc.type.req.class)
     7 T6680106.java:14:30: compiler.err.type.found.req: T[], (compiler.misc.type.req.class)
     8 T6680106.java:15:30: compiler.err.type.found.req: S[], (compiler.misc.type.req.class)
     9 T6680106.java:15:50: compiler.err.type.found.req: T[], (compiler.misc.type.req.class)
    10 T6680106.java:16:30: compiler.err.type.found.req: S[], (compiler.misc.type.req.class)
    11 T6680106.java:16:50: compiler.err.type.found.req: U[], (compiler.misc.type.req.class)
    12 T6680106.java:16:70: compiler.err.type.found.req: T[], (compiler.misc.type.req.class)
    13 12 errors

mercurial