JDK-8244639 : Enable ShowCodeDetailsInExceptionMessages by default
  • Type: CSR
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P4
  • Status: Closed
  • Resolution: Approved
  • Fix Versions: 15
  • Submitted: 2020-05-08
  • Updated: 2020-06-17
  • Resolved: 2020-06-10
Related Reports
CSR :  
Relates :  
Relates :  
Description
Summary
-------

Enable ShowCodeDetailsInExceptionMessages by default.

Problem
-------

The flag ShowCodeDetailsInExceptionMessages was introduced with CSR "JDK-8227717
Give more helpful NullPointerException messages and add flag -XX:ShowCodeDetailsInExceptionMessages" 
and toggles the enhancement introduced by "JEP 358: Helpful NullPointerExceptions". So far the default value is 'false', so that the enhancement is off. 

The enhanced NullPointerException messages should be printed per default.

Solution
--------

Set the flag to 'true'.

Comments
Moving to Approved. The security review came back as fine, as long as a release note was included for this change warning of the exposure of more information. I've put text from the security review team in a release note subtask on the main issue; please edit accordingly. Personally, I'd feel more comfortable if this change went it at the start of 16; if that comes to pass for some reason, update the CSR for the new release and I'll re-approve it.
10-06-2020

I've pinged the engineers responsible for performing the security review.
04-06-2020

I've requested a security review of changing the default of this option. I'm moving to request to pended while that review is outstanding.
15-05-2020

This seems fine to me. Reviewed.
08-05-2020

The CSR request should remain in Draft until it has Reviewers. Once it has a Reviewer it can be Finalized (fast-track process) rather than Proposed.
08-05-2020