OpenJDK, the open source project behind Java, has adopted an interim policy that bans contributions generated in part or in full by large language models, diffusion models or similar systems.

The ban covers more than source code. It extends to text and images in OpenJDK repositories, pull requests, mailing lists, wiki pages and issue trackers. The policy's FAQ is blunt: editing 10 lines of a 100-line AI-generated patch does not make it acceptable, because the contribution is still partly AI-generated. Developers may still use models privately for debugging and review.

The project cited three reasons, according to the policy and coverage by InfoQ: reviewer burden from floods of plausible but incorrect code, the security bar required of a runtime that underpins mission-critical systems, and intellectual property risk, since whether anyone owns the rights to model output is the subject of active litigation.

The stance has drawn attention because Oracle, OpenJDK's corporate sponsor, is betting heavily on AI elsewhere, and its own GraalVM project accepts AI-assisted contributions, The Register and InfoQ reported. The story hit the Hacker News front page Friday.

For open source maintainers, OpenJDK is now the largest project to pick a side in a fight most communities are still dodging: whether provenance rules for AI code are enforceable at all.