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:
Jan Lahoda 2020-06-19 14:26:09 +02:00
parent 5d1255bf52
commit 226e852831
3 changed files with 40 additions and 19 deletions

View file

@ -29,4 +29,8 @@ public class I {
protected String readFile(Path file) {
return file.toString();
}
protected static String readFile2(Path file) {
return file.toString();
}
}