hg: jdk/jdk15: 8238735: NPE compiling lambda expression within conditional expression
maurizio.cimadamore at oracle.com
maurizio.cimadamore at oracle.com
Wed Jun 17 15:06:15 UTC 2020
Changeset: 2ed7a5ed4b7f
Author: asotona
Date: 2020-06-17 13:18 +0200
URL: https://hg.openjdk.java.net/jdk/jdk15/rev/2ed7a5ed4b7f
8238735: NPE compiling lambda expression within conditional expression
Summary: The fix saves result type from the first pass through the Attr.visitLambda and returns it after recovery pass to avoid NPE caused by exposure of Type.recoveryType
Reviewed-by: mcimadamore
! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java
+ test/langtools/tools/javac/8238735/T8238735.java
+ test/langtools/tools/javac/8238735/T8238735.out
More information about the jdk-changes
mailing list