Oracle bans AI-generated code from OpenJDK

495 points · 356 comments on HN · read original →

Points and comments are a snapshot, not live.

Oracle bans AI-generated code from OpenJDK despite using it internally.

Oracle has banned AI-generated code from OpenJDK contributions, citing safety, security, and IP risks. Developers can use LLMs privately for debugging but cannot submit AI-generated material. The policy contrasts with Oracle's internal practices: co-founder Larry Ellison said AI models write Oracle's code, and co-CEO Mike Sicilia credited AI tools with enabling faster delivery. Oracle is investing $70 billion this year in datacenter expansion, prompting S&P to downgrade its rating to BBB-, one notch above junk, citing uncertain returns.

What commenters are saying

Commenters noted the irony of Oracle banning AI code from OpenJDK while touting AI internally. Many argued the real reason is IP liability, not quality. Developers split: some saw AI as a useful tool for experienced engineers, others reported codebase erosion, credential leaks, and developers losing understanding of their own code. A commenter warned that younger engineers are not being hired or trained to sustain talent pipelines. Linux's social review process was cited as a way to handle AI contributions without a blanket ban.