test/tools/javac/varargs/6313164/T6313164.out

Fri, 28 Jan 2011 12:03:49 +0000

author
mcimadamore
date
Fri, 28 Jan 2011 12:03:49 +0000
changeset 845
5a43b245aed1
child 1238
e28a06a3c5d9
permissions
-rw-r--r--

6313164: javac generates code that fails byte code verification for the varargs feature
Summary: method applicability check should fail if formal varargs element type is not accessible
Reviewed-by: jjg

     1 T6313164.java:12:8: compiler.err.cant.apply.symbol.1: kindname.method, foo1, p1.A[], p1.B,p1.B, kindname.class, p1.B, (compiler.misc.inaccessible.varargs.type: p1.A, kindname.class, T6313164)
     2 T6313164.java:14:13: compiler.err.invalid.inferred.types: X, (compiler.misc.inaccessible.varargs.type: p1.A, kindname.class, T6313164)
     3 T6313164.java:15:13: compiler.err.invalid.inferred.types: X, (compiler.misc.inaccessible.varargs.type: p1.A, kindname.class, T6313164)
     4 - compiler.note.unchecked.filename: B.java
     5 - compiler.note.unchecked.recompile
     6 3 errors

mercurial