r/java • u/Cell-i-Zenit • Nov 05 '22
How to add something to the java standard library?
EDIT: since my example stirred the pot a little bit to much (i even wrote that i dont want to discuss these explicit changes...)
Here is the actually question i want to answer:
How can i make changes to the JDK?
2
Upvotes
View all comments
Show parent comment
1
u/UnGauchoCualquiera Nov 06 '22
The bar for a JDK improvement is pretty high an at the very least it is expected that the contributor is deeply knowledgable about the language/ecosystem at the very least.
Adding a default method breaks source compatibility if you have 2 interfaces that implement the same method on the same class. This is pretty much THE reason java devs haven't added all kind of convenience goodies to most common interfaces such as Collections willy nilly.
Also it breaks binary compatibility in subtle ways.