mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 10:34:38 +02:00
8242214: NullPointerException in JDK 14 javac compiling a method reference
Ensuring a proper receiver is used to invoke protected method when method reference is unrolled into a lambda. Reviewed-by: vromero
This commit is contained in:
parent
5d1255bf52
commit
226e852831
3 changed files with 40 additions and 19 deletions
|
@ -29,4 +29,8 @@ public class I {
|
|||
protected String readFile(Path file) {
|
||||
return file.toString();
|
||||
}
|
||||
|
||||
protected static String readFile2(Path file) {
|
||||
return file.toString();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue