Tue, 29 Mar 2016 10:48:49 +0000
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 |