-
Bug
-
Resolution: Fixed
-
P2
-
8, 11, 13, 14, 15
-
b29
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8247883 | 16 | Adam Sotona | P2 | Resolved | Fixed | b03 |
JDK-8250055 | 15.0.2 | Adam Sotona | P2 | Resolved | Fixed | b01 |
JDK-8250353 | 15.0.1 | Adam Sotona | P2 | Resolved | Fixed | b03 |
ADDITIONAL SYSTEM INFORMATION :
DELL 7720/OpenSUSE Leap 15.1/1.8.0_242
A DESCRIPTION OF THE PROBLEM :
boolean first = true;
...
first = first ? false : (boolean)(() -> false) ;
An exception has occurred in the compiler (1.8.0_242). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program and the following diagnostic in your report. Thank you.
java.lang.NullPointerException
at com.sun.tools.javac.code.Types.asSuper(Types.java:1949)
at com.sun.tools.javac.code.Types$4.visitClassType(Types.java:921)
at com.sun.tools.javac.code.Types$4.visitClassType(Types.java:844)
at com.sun.tools.javac.code.Type$ClassType.accept(Type.java:786)
at com.sun.tools.javac.code.Types$DefaultTypeVisitor.visit(Types.java:4571)
at com.sun.tools.javac.code.Types.isSubtype(Types.java:840)
at com.sun.tools.javac.code.Types.isSubtype(Types.java:804)
at com.sun.tools.javac.code.Types.isCastable(Types.java:1488)
at com.sun.tools.javac.comp.Attr$11.compatible(Attr.java:3114)
at com.sun.tools.javac.comp.Check.checkType(Check.java:546)
at com.sun..................
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
boolean first = true;
...
first = first ? false : (boolean)(() -> false) ;
An exception has occurred in the compiler (1.8.0_242). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program and the following diagnostic in your report. Thank you.
java.lang.NullPointerException
at com.sun.tools.javac.code.Types.asSuper(Types.java:1949)
at com.sun.tools.javac.code.Types$4.visitClassType(Types.java:921)
at com.sun.tools.javac.code.Types$4.visitClassType(Types.java:844)
at com.sun.tools.javac.code.Type$ClassType.accept(Type.java:786)
at com.sun.tools.javac.code.Types$DefaultTypeVisitor.visit(Types.java:4571)
at com.sun.tools.javac.code.Types.isSubtype(Types.java:840)
at com.sun.tools.javac.code.Types.isSubtype(Types.java:804)
at com.sun.tools.javac.code.Types.isCastable(Types.java:1488)
at com.sun.tools.javac.comp.Attr$11.compatible(Attr.java:3114)
at com.sun.tools.javac.comp.Check.checkType(Check.java:546)
at com.sun..................
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Compiler error.
ACTUAL -
An exception has occurred in the compiler (1.8.0_242). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program and the following diagnostic in your report. Thank you.
java.lang.NullPointerException
at com.sun.tools.javac.code.Types.asSuper(Types.java:1949)
at com.sun.tools.javac.code.Types$4.visitClassType(Types.java:921)
at com.sun.tools.javac.code.Types$4.visitClassType(Types.java:844)
at com.sun.tools.javac.code.Type$ClassType.accept(Type.java:786)
at com.sun.tools.javac.code.Types$DefaultTypeVisitor.visit(Types.java:4571)
at com.sun.tools.javac.code.Types.isSubtype(Types.java:840)
at com.sun.tools.javac.code.Types.isSubtype(Types.java:804)
at com.sun.tools.javac.code.Types.isCastable(Types.java:1488)
at com.sun.tools.javac.comp.Attr$11.compatible(Attr.java:3114)
at com.sun.tools.javac.comp.Check.checkType(Check.java:546)
at com.sun..................
---------- BEGIN SOURCE ----------
boolean first = true;
...
first = first ? false : (boolean)(() -> false) ;
---------- END SOURCE ----------
FREQUENCY : always
DELL 7720/OpenSUSE Leap 15.1/1.8.0_242
A DESCRIPTION OF THE PROBLEM :
boolean first = true;
...
first = first ? false : (boolean)(() -> false) ;
An exception has occurred in the compiler (1.8.0_242). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program and the following diagnostic in your report. Thank you.
java.lang.NullPointerException
at com.sun.tools.javac.code.Types.asSuper(Types.java:1949)
at com.sun.tools.javac.code.Types$4.visitClassType(Types.java:921)
at com.sun.tools.javac.code.Types$4.visitClassType(Types.java:844)
at com.sun.tools.javac.code.Type$ClassType.accept(Type.java:786)
at com.sun.tools.javac.code.Types$DefaultTypeVisitor.visit(Types.java:4571)
at com.sun.tools.javac.code.Types.isSubtype(Types.java:840)
at com.sun.tools.javac.code.Types.isSubtype(Types.java:804)
at com.sun.tools.javac.code.Types.isCastable(Types.java:1488)
at com.sun.tools.javac.comp.Attr$11.compatible(Attr.java:3114)
at com.sun.tools.javac.comp.Check.checkType(Check.java:546)
at com.sun..................
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
boolean first = true;
...
first = first ? false : (boolean)(() -> false) ;
An exception has occurred in the compiler (1.8.0_242). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program and the following diagnostic in your report. Thank you.
java.lang.NullPointerException
at com.sun.tools.javac.code.Types.asSuper(Types.java:1949)
at com.sun.tools.javac.code.Types$4.visitClassType(Types.java:921)
at com.sun.tools.javac.code.Types$4.visitClassType(Types.java:844)
at com.sun.tools.javac.code.Type$ClassType.accept(Type.java:786)
at com.sun.tools.javac.code.Types$DefaultTypeVisitor.visit(Types.java:4571)
at com.sun.tools.javac.code.Types.isSubtype(Types.java:840)
at com.sun.tools.javac.code.Types.isSubtype(Types.java:804)
at com.sun.tools.javac.code.Types.isCastable(Types.java:1488)
at com.sun.tools.javac.comp.Attr$11.compatible(Attr.java:3114)
at com.sun.tools.javac.comp.Check.checkType(Check.java:546)
at com.sun..................
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Compiler error.
ACTUAL -
An exception has occurred in the compiler (1.8.0_242). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program and the following diagnostic in your report. Thank you.
java.lang.NullPointerException
at com.sun.tools.javac.code.Types.asSuper(Types.java:1949)
at com.sun.tools.javac.code.Types$4.visitClassType(Types.java:921)
at com.sun.tools.javac.code.Types$4.visitClassType(Types.java:844)
at com.sun.tools.javac.code.Type$ClassType.accept(Type.java:786)
at com.sun.tools.javac.code.Types$DefaultTypeVisitor.visit(Types.java:4571)
at com.sun.tools.javac.code.Types.isSubtype(Types.java:840)
at com.sun.tools.javac.code.Types.isSubtype(Types.java:804)
at com.sun.tools.javac.code.Types.isCastable(Types.java:1488)
at com.sun.tools.javac.comp.Attr$11.compatible(Attr.java:3114)
at com.sun.tools.javac.comp.Check.checkType(Check.java:546)
at com.sun..................
---------- BEGIN SOURCE ----------
boolean first = true;
...
first = first ? false : (boolean)(() -> false) ;
---------- END SOURCE ----------
FREQUENCY : always
- backported by
-
JDK-8247883 NPE compiling lambda expression within conditional expression
- Resolved
-
JDK-8250055 NPE compiling lambda expression within conditional expression
- Resolved
-
JDK-8250353 NPE compiling lambda expression within conditional expression
- Resolved
- duplicates
-
JDK-8239838 Cast from a function to double causing NullPointerException during compilation
- Closed