test/tools/javac/lambda/MethodReference38.out

Tue, 29 Mar 2016 10:48:49 +0000

author
dbuck
date
Tue, 29 Mar 2016 10:48:49 +0000
changeset 3102
e74dd6df4d4c
parent 1627
6db9a3b1a93f
child 2525
2eb010b6cb22
permissions
-rw-r--r--

8143647: Javac compiles method reference that allows results in an IllegalAccessError
Summary: Lambda implementation method synthesized by javac should not mention inaccessible types.
Reviewed-by: mcimadamore

mcimadamore@1627 1 MethodReference38.java:24:18: compiler.err.abstract.cant.be.instantiated: MethodReference38.A
mcimadamore@1627 2 MethodReference38.java:25:18: compiler.err.abstract.cant.be.instantiated: MethodReference38.I
mcimadamore@1627 3 MethodReference38.java:26:18: compiler.err.abstract.cant.be.instantiated: MethodReference38.AC
mcimadamore@1415 4 MethodReference38.java:27:18: compiler.err.enum.cant.be.instantiated
mcimadamore@1415 5 4 errors

mercurial