8004101: Add checks for method reference well-formedness

Bring method reference type-checking in sync with latest EDR

Reviewed-by: jjg
This commit is contained in:
Maurizio Cimadamore 2012-11-30 15:14:36 +00:00
parent 0db60b7bb2
commit c76c08e82a
15 changed files with 195 additions and 57 deletions

View file

@ -70,9 +70,6 @@ public class MethodRef1 {
b = MethodRef1::foo; //static reference to foo(int)
b.m(1);
b = new MethodRef1()::foo; //instance reference to static methods, supported for now
b.m(1);
b = MethodRef1::bar; //static reference to bar(int)
b.m(2);