Fri, 28 Jan 2011 12:01:07 +0000
6910550: javac 1.5.0_17 fails with incorrect error message
Summary: multiple clashing members declared in same class should be added to the class' scope in order to avoid downstream spurious diagnostics
Reviewed-by: jjg
mcimadamore@288 | 1 | T6304921.java:29:34: compiler.warn.raw.class.use: java.util.ArrayList, java.util.ArrayList<E> |
mcimadamore@288 | 2 | T6304921.java:29:30: compiler.warn.prob.found.req: (compiler.misc.unchecked.assign), java.util.ArrayList, java.util.List<java.lang.Integer> |
mcimadamore@288 | 3 | - compiler.err.warnings.and.werror |
mcimadamore@829 | 4 | T6304921.java:35:15: compiler.err.cant.resolve.location: kindname.variable, orr, , , (compiler.misc.location: kindname.class, java.lang.System, null) |
mcimadamore@829 | 5 | T6304921.java:38:20: compiler.err.operator.cant.be.applied.1: +, int, boolean |
jjg@215 | 6 | 3 errors |
jjg@215 | 7 | 2 warnings |