Oracle's OpenJDK Bans Generative AI Contributions While GraalVM Allows Them
Key Takeaways
- ▸OpenJDK implements a strict zero-tolerance policy for any AI-generated content, while GraalVM allows and encourages the use of AI coding assistants—two Oracle-backed projects with opposing stances
- ▸OpenJDK's ban cites three rationales: reviewer burden, safety concerns for mission-critical systems, and unresolved IP rights questions around AI-generated output
- ▸GraalVM's more permissive stance focuses on contributor accountability and optional disclosure of AI assistance, mirroring the Linux kernel's approach
Summary
Oracle's open-source projects have adopted conflicting policies on generative AI-generated code contributions. OpenJDK's Governing Board approved an interim policy in April 2026 that broadly prohibits contributions containing any content generated by large language models, diffusion models, or similar deep-learning systems, covering source code, text, and images across all OpenJDK repositories and communication channels.
The OpenJDK ban is driven by three primary concerns: reviewer burden (AI-generated code that appears correct but is flawed drains limited reviewer resources), safety and security (the JDK underpins mission-critical systems requiring high standards), and intellectual property uncertainty (questions about ownership rights in AI-generated output remain subject to active litigation). Contributors may still use generative AI privately for understanding, debugging, and research—they simply cannot submit AI-generated contributions. The policy enforces compliance through a checkbox in Skara, the automated pull request review system.
In stark contrast, GraalVM, an Oracle Labs project not governed by OpenJDK's board, published a permissive policy in mid-April 2026 allowing generative AI-assisted contributions. GraalVM's approach, informed by the Linux kernel's AI Coding Assistants policy, permits contributors to use AI coding assistants when preparing contributions. While attribution to specific AI models or tools is optional, the project encourages disclosure when it helps reviewers understand how changes were produced. Both projects require contributors to sign the same Oracle Contributor Agreement (OCA), creating an unusual situation where contributors face opposite rules depending on which Oracle project they contribute to.
- Both projects use the same Oracle Contributor Agreement despite opposite AI policies, creating confusion for contributors
- OpenJDK acknowledges that distinguishing human-generated from AI-generated code is 'impossible in general,' forcing reliance on contributor honesty and reviewer vigilance



