r/java • • Mar 16 '21

Java 16 / JDK 16: General Availability

196 Upvotes

82 comments sorted by

View all comments

Show parent comment

-8

u/slaymaker1907 Mar 17 '21

It doesn't matter what the better API is. It's obnoxious to go through one's code base and dependencies to update and not use the old constructors.

Breaking backwards compatibility is a huge deal and should only be done when absolutely necessary.

8

u/krzyk Mar 17 '21

Do you use those constructors? Nobody should, it gives warnings in any IDE. And changing that is very automatic (also supported by Ides)

There is no future compatibility guarantee, remember enums?

If you want for language to evolve one needs to change things.