JDK-8233014 : Enable ShowCodeDetailsInExceptionMessages by default
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.
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.
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
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.
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
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.
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:
The patch needed to enable this is to be found here: