mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 01:24:33 +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
|
@ -133,15 +133,6 @@ public class SamConversion {
|
|||
} catch (Exception e) {
|
||||
assertTrue(false);
|
||||
}
|
||||
|
||||
bar = new A()::method6;
|
||||
try {
|
||||
bar.m(1);
|
||||
assertTrue(false);
|
||||
} catch (MyException e) {
|
||||
} catch (Exception e) {
|
||||
assertTrue(false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue