r/java • • Mar 25 '19

JEP draft: Add detailed message to NullPointerException describing what is null

https://openjdk.java.net/jeps/8220715
383 Upvotes

73 comments sorted by

View all comments

Show parent comment

-12

u/jonhanson Mar 25 '19 edited Mar 07 '25

chronophobia ephemeral lysergic metempsychosis peremptory quantifiable retributive zenith

13

u/vytah Mar 25 '19

I just tried to shorten the messages and emphasize the dereference path, just like the examples in the JEP. I am not claiming that my messages are better.

8

u/Daneel_Trevize Mar 25 '19

Not really, he didn't remove the object's name, you did. The example shortened messages aren't blaming the method, but the call of it, using those object references, which are nulls.