-
Type:
Sub-task
-
Resolution: Delivered
-
Priority:
P4
-
Affects Version/s: 14
-
Component/s: hotspot
-
Verified
A new option is available to provide more helpful `NullPointerException` messages:
-XX:+ShowCodeDetailsInExceptionMessages
If the option is set, on encountering a null pointer, the JVM analyzes the program to determine which reference was `null` and then provides the details as part of `NullPointerException.getMessage()`. In addition to the exception message, the method, filename, and line number are also returned.
By default, this option is disabled.
-XX:+ShowCodeDetailsInExceptionMessages
If the option is set, on encountering a null pointer, the JVM analyzes the program to determine which reference was `null` and then provides the details as part of `NullPointerException.getMessage()`. In addition to the exception message, the method, filename, and line number are also returned.
By default, this option is disabled.
- relates to
-
JDK-8220715 JEP 358: Helpful NullPointerExceptions
-
- Closed
-