JDK-8233014 : Enable ShowCodeDetailsInExceptionMessages by default
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 15
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-10-25
  • Updated: 2020-07-24
  • Resolved: 2020-06-19
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 15 JDK 16
15 b29Fixed 16Fixed
Related Reports
CSR :  
Relates :  
Relates :  
Sub Tasks
JDK-8247371 :  
Description
With this change the Helpful NullPointerExceptions of JEP 358 are printed per default.

Also, we need to adapt the test that checks the default value, and two tests that check the wording of the NPE message.
Comments
Changeset: bf1e6903 Author: Goetz Lindenmaier <goetz@openjdk.org> Date: 2020-06-18 22:03:18 +0000 URL: https://git.openjdk.java.net/lanai/commit/bf1e6903
02-07-2020

Changeset: bf1e6903 Author: Goetz Lindenmaier <goetz@openjdk.org> Date: 2020-06-18 22:03:18 +0000 URL: https://git.openjdk.java.net/panama-foreign/commit/bf1e6903
02-07-2020

Changeset: bf1e6903 Author: Goetz Lindenmaier <goetz@openjdk.org> Date: 2020-06-18 22:03:18 +0000 URL: https://git.openjdk.java.net/amber/commit/bf1e6903
02-07-2020

Changeset: bf1e6903 Author: Goetz Lindenmaier <goetz@openjdk.org> Date: 2020-06-18 22:03:18 +0000 URL: https://git.openjdk.java.net/mobile/commit/bf1e6903
02-07-2020

URL: https://hg.openjdk.java.net/jdk/jdk15/rev/ba81cfc89de8 User: goetz Date: 2020-06-19 05:53:25 +0000
19-06-2020

Late enhancement approved by Project Lead.
18-06-2020

Review mails: http://mail.openjdk.java.net/pipermail/hotspot-dev/2020-April/041463.html http://mail.openjdk.java.net/pipermail/hotspot-dev/2020-May/041695.html
17-06-2020

Late Enhancement Request I would like to bring this change to jdk15. The change is ready to go since April. It needed a CSR and an Oracle internal security check. The processing of these was not in my hands. It was just approved the day before RDP 1, and I missed the few hours timeframe to push it. As there have been concerns with enabling the flag, I would rather have the change in 15 and not in 16. The usage of 16 overlaps the rampdown of 17 which will be LTE. If it goes to 15, there is enough time to collect feedback and implement fixes before 17 goes to rampdown. Risk: As the change only swaps a flag, and the flag has been swapped for a while in downstream builds of OpenJDK (in SapMachine since 13.0.2 and 11.0.6) it is unlikely that it introduces instability in the VM. The more general concerns with this change, also reflected in the release note, remain the same whether it is pushed to 15 or 16. The change is reviewed and can be pushed right after granting late enhancement.
17-06-2020

It is planned to enable the message of JEP 358 after gathering experience with it. Currently we target Java 15. I open this issue to show how to enable this per default, and also to track where experience is gathered with it. SAP downported the message to SapMachine 11.0.6 and 13.0.2 and enabled it per default in SapMachine 11, 13 and 14+ using above webrev: 11: https://github.com/SAP/SapMachine/commit/a35c7736131391dd1a5119aeee015a09ea427f35 13: https://github.com/SAP/SapMachine/commit/2ec55a984b76a13d4b1bba33deddd2d66613ecd2 14: https://github.com/SAP/SapMachine/commit/93b1f775cac8fb5c0ced03098f15bc36d936894d
07-11-2019

The patch needed to enable this is to be found here: http://cr.openjdk.java.net/~goetz/wr19/8233014-enable_NPE_per_default/
25-10-2019