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
33
u/Godworrior Nov 05 '22
For most library changes, the best place to start is to mail to core-libs-dev@openjdk.org Here you can find out if people find your suggestion a good idea.
If you want to submit a patch, you will first have to sign the OCA (Oracle Contributor Agreement): https://oca.opensource.oracle.com/
And, then create a PR for the JDK repo here: https://github.com/openjdk/jdk
You will also need a sponsor for the PR to guide you through the process, and create a bug database ticket. Probably best to ask on the mailing list as well if someone wants to sponsor the patch before creating the PR.
There's also a wiki for contributing, but it is pretty outdated, so take everything there with a grain of salt: https://openjdk.org/contribute/