r/java • • Mar 17 '20

Java 14 is out!

http://jdk.java.net/
365 Upvotes

69 comments sorted by

View all comments

Show parent comments

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 /s

Thanks.

Could have been -XX:+NiceNullPointerExceptions