Oracle bans AI-generated code from OpenJDK
TL;DR Highlight
OpenJDK bans LLM-generated code contributions, sparking debate over AI policy in open source.
Who Should Read
Developers who submit AI-assisted PRs to open source or must set their team's AI code policy
Core Mechanics
- OpenJDK blocked LLM-generated code
- Community contributions must not include content generated in part or in full by large language models.
- The document is called the OpenJDK Interim Policy on Generative AI.
- The policy is interim
- The policy page says lawyers are writing the final version.
- Non-LLM editor features are still allowed
- Spell-check, grammar-check, auto-completion and refactoring are fine if not based on LLMs or deep learning.
- The original article was unavailable
- Only comments were provided, so details are limited to what the comments quote.
Community Reactions
- Opinion: it's about copyright
- Commenters said AI output may not be copyrightable, so copyright can't be assigned to Oracle.
- Another said big companies get indemnity from AI vendors, but external contributions lack that.
- Opinion: it's about review burden
- Commenters said low-care contributions add load to limited human reviewers.
- Another said code is a liability for a mature project.
- Oracle didn't issue the ban directly
- A commenter noted the OpenJDK Governing Board issued it, separate from Oracle's internal rules.
- Question about detection
- One commenter asked how incoming AI code could be detected and whether tools exist.
- Another noted Rust has similar guidelines.
How to Apply
- Draft your team's AI code policy
- Spend 30 minutes today writing one page on allowed scope, review standards and disclosure.
- Split rules for internal code and external contributions.
- Check AI policy before contributing upstream
- Read the target repo's CONTRIBUTING and AI policy before opening a PR.
- Don't include LLM-generated code in projects that ban it.
- Add an AI-usage checkbox to your PR template
- Add a field for whether and how much an LLM was used.
- Require the author to confirm they reviewed and understand every line.
Try It
# Paste into Claude or ChatGPT (simplified version for drafting a policy, not the article's method)
You are an open source maintainer. Write a one-page 'AI-generated code contribution policy' draft for this situation.
- Project: {{project description}}
- Number of reviewers: {{reviewers}}
- Concerns: copyright, review burden, code quality
Include: allowed scope, banned scope, exceptions for editor features (autocomplete, refactoring), and a checklist for PR authors.
Next: turn the finished draft into PR template checkboxes.Terminology
Related Papers
Gemini 4 Neon is the new #1 on the Models Engineering Index
Gemini 4 Neon ranks first on the Models Engineering Index with 68.0, combining multiple benchmarks.
LLMs can read and write executables byte by byte from a hex dump
Given only a hex dump and no tools, an LLM analyzed, patched and wrote working executables.
Claude was trained on protein sequences at scale
Next-amino-acid tests on obscure proteins show only the latest Claude models predict them
Remembered as Brief: Stored Preferences SilentlyRemove Decision-Critical Information
A stored 'keep it short' preference silently drops warnings; listing must-know points first restores content.
All AI-generated code should be Open Source
A blog argues AI-generated code should be open source; most HN commenters disagreed.
What thousands of conversations look like inside a language model
Mapping Qwen3-1.7B states showed Chinese sitting apart from English, while German and Croatian overlapped it.
AI, activity, and outcomes in software engineering
AI sped up writing code, but shipping speed did not rise as much, says a talk
LLMs Play Zachtronics' TIS-100
16 LLMs played TIS-100 and set 133 new Pareto frontier points across 18 puzzles