mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 09:34:38 +02:00
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:
parent
0db60b7bb2
commit
c76c08e82a
15 changed files with 195 additions and 57 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue