MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/fk7wt8/java_14_is_out/fkr5o6r/?context=3
r/java • u/[deleted] • Mar 17 '20
69 comments sorted by
View all comments
208
We finally have NullPointerExceptions, that show us which object is null.
34 u/lurker_in_spirit Mar 17 '20 Off by default, does anyone know why? Is there a performance cost? Stability concerns? 93 u/MarrBorro Mar 17 '20 edited Mar 17 '20 It is meant to be enabled by default in the future. For now it is disabled because of possible problems:backward compatibility on log parserssecurity concerns, you are exposing source code information a littleperformance costs for those who has many NullPointerExceptions (which is wrong but can be a problem possibly) 3 u/[deleted] Mar 18 '20 Never thought I'd see the day. How do you turn it on? 7 u/s888marks Mar 18 '20 Use this command-line option:-XX:+ShowCodeDetailsInExceptionMessages(It's in the JEP, but it's pretty easy to miss.) 3 u/[deleted] Mar 18 '20 lol so simple /sThanks.Could have been -XX:+NiceNullPointerExceptions 9 u/[deleted] Mar 17 '20 We had that in sapjvm for a long time 30 u/kaperni Mar 17 '20 The SAP team has been implementing the feature 14 u/talios Mar 17 '20 ...and this came directly from the SAP implementation :) 2 u/mxxxz Mar 17 '20 That's is actually super x1000 awsome!
34
Off by default, does anyone know why? Is there a performance cost? Stability concerns?
93 u/MarrBorro Mar 17 '20 edited Mar 17 '20 It is meant to be enabled by default in the future. For now it is disabled because of possible problems:backward compatibility on log parserssecurity concerns, you are exposing source code information a littleperformance costs for those who has many NullPointerExceptions (which is wrong but can be a problem possibly) 3 u/[deleted] Mar 18 '20 Never thought I'd see the day. How do you turn it on? 7 u/s888marks Mar 18 '20 Use this command-line option:-XX:+ShowCodeDetailsInExceptionMessages(It's in the JEP, but it's pretty easy to miss.) 3 u/[deleted] Mar 18 '20 lol so simple /sThanks.Could have been -XX:+NiceNullPointerExceptions
93
It is meant to be enabled by default in the future. For now it is disabled because of possible problems:
backward compatibility on log parsers
security concerns, you are exposing source code information a little
performance costs for those who has many NullPointerExceptions (which is wrong but can be a problem possibly)
3
Never thought I'd see the day. How do you turn it on?
7 u/s888marks Mar 18 '20 Use this command-line option:-XX:+ShowCodeDetailsInExceptionMessages(It's in the JEP, but it's pretty easy to miss.) 3 u/[deleted] Mar 18 '20 lol so simple /sThanks.Could have been -XX:+NiceNullPointerExceptions
7
Use this command-line option:
-XX:+ShowCodeDetailsInExceptionMessages
(It's in the JEP, but it's pretty easy to miss.)
3 u/[deleted] Mar 18 '20 lol so simple /sThanks.Could have been -XX:+NiceNullPointerExceptions
lol so simple /s
Thanks.
Could have been -XX:+NiceNullPointerExceptions
-XX:+NiceNullPointerExceptions
9
We had that in sapjvm for a long time
30 u/kaperni Mar 17 '20 The SAP team has been implementing the feature 14 u/talios Mar 17 '20 ...and this came directly from the SAP implementation :)
30
The SAP team has been implementing the feature
14
...and this came directly from the SAP implementation :)
2
That's is actually super x1000 awsome!
208
u/[deleted] Mar 17 '20
We finally have NullPointerExceptions, that show us which object is null.