Oracle bans AI-generated code from OpenJDK contributions
Oracle has barred AI-generated material from OpenJDK repositories, pull requests and other project channels, citing safety, security and IP risks — even as its executives say AI now writes Oracle's own code.
The new contribution rule
Oracle, the steward of the OpenJDK project, has banned AI-generated code from contributions to the open-source Java implementation. Developers may still use large language models privately for debugging and reviewing code, but AI-generated material cannot be submitted to repositories, pull requests or other project channels. The company cites safety, security and intellectual-property risks as the reasons.
At odds with the company's own message
The policy contrasts sharply with how Oracle describes AI inside its own engineering organisation. Co-founder Larry Ellison recently declared that AI models now write Oracle's code, while co-CEO Mike Sicilia credited AI tools with enabling smaller engineering teams to deliver faster. Contributors to OpenJDK, in other words, are held to a stricter standard than the company's public account of its internal practices suggests.
Datacentre spending and a downgrade
The move comes as Oracle pours money into AI infrastructure: the company is investing $70 billion this year in datacentre expansion. That spending has drawn scrutiny from credit markets — rating agency S&P downgraded Oracle's rating to BBB-, one notch above junk status, citing uncertain returns on the investment.
For OpenJDK, the practical effect is a clear line at the repository boundary: AI assistance is tolerated as a private tool, but not as an authored contribution to the shared Java codebase.
SiTech — AI-powered web development
We build fast, modern websites and bring AI into real business workflows. Have a project or a question? We'd love to help.