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
1 T6227617.java:14:18: compiler.warn.redundant.cast: int
2 T6227617.java:19:20: compiler.warn.redundant.cast: java.lang.String
3 T6227617.java:23:22: compiler.warn.redundant.cast: java.lang.Integer
4 T6227617.java:33:27: compiler.warn.redundant.cast: int
5 T6227617.java:36:29: compiler.warn.redundant.cast: java.lang.String
6 5 warnings