8068995: Cleanup method reference lookup code

Simplify method reference code lookup and generate better/more uniform diagnostics

Reviewed-by: vromero
This commit is contained in:
Maurizio Cimadamore 2015-01-15 13:58:11 +00:00
parent 1b90760ef4
commit 82db21e08d
16 changed files with 371 additions and 298 deletions

View file

@ -1,3 +1,2 @@
MethodReference68.java:21:10: compiler.err.cant.apply.symbol: kindname.method, g, MethodReference68.F<Z>,Z[], @493,int, kindname.class, MethodReference68, (compiler.misc.inferred.do.not.conform.to.upper.bounds: java.lang.Integer, MethodReference68.Foo,java.lang.Object)
MethodReference68.java:21:12: compiler.err.invalid.mref: kindname.method, (compiler.misc.non-static.cant.be.ref: kindname.method, getName())
2 errors
1 error