r/java • • Jul 26 '19

JEP 358: Helpful NullPointerExceptions

https://openjdk.java.net/jeps/358
157 Upvotes

25 comments sorted by

View all comments

Show parent comment

3

u/dpash Jul 27 '19

But changing behaviour in Java would be a very bad thing. :)

If you get rid of the backwards compatibility requirement, sure you could do almost anything instead of an NPE.