Repository navigation
Produce Java 21 bytecode #7547
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Produce Java 21 bytecode #7547
Changes from all commits
bf58ff8
a6d0e57
1451bde
0aacfc7
cff0bf3
1a5e1f5
071b23b
e5fc029
ca2647c
9ae1553
4cfd6bf
039278b
d80761a
6097065
af33f7f
fc1ea8f
1cf6533
5d62132
503fb76
88e0875
921cd28
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -3,7 +3,24 @@ | |||||||||||||||||||||||||||||||
| <!-- markdownlint-disable no-duplicate-heading --> | ||||||||||||||||||||||||||||||||
| <!-- pyml disable no-duplicate-heading --> | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| ## Version 3.54.1 (2026-04-02) | ||||||||||||||||||||||||||||||||
| ## Version 4.0.0 (2026-??) | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| ### User-visible changes | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| To run the Checker Framework, you need to use a JDK 21 or later version of | ||||||||||||||||||||||||||||||||
| javac. The Checker Framework can run on any Java project, including projects | ||||||||||||||||||||||||||||||||
| that compile to Java 8, 11, or 17 bytecodes and run on JRE versions 8, 11, or | ||||||||||||||||||||||||||||||||
| 17. | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| The type qualifiers and utility libraries in `checker-qual.jar` and | ||||||||||||||||||||||||||||||||
| `checker-util.jar` still use Java 11 bytecode. Thus, they may be included in | ||||||||||||||||||||||||||||||||
| projects that run under an earlier version of Java. | ||||||||||||||||||||||||||||||||
|
Comment on lines
+10
to
+17
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: # Find and examine build.gradle to check Java version configuration
find . -name "build.gradle*" -type f | head -20Repository: typetools/checker-framework Length of output: 445 🏁 Script executed: # Check the current CHANGELOG.md content at lines 10-17
if [ -f "docs/CHANGELOG.md" ]; then
sed -n '10,17p' docs/CHANGELOG.md
fiRepository: typetools/checker-framework Length of output: 504 🏁 Script executed: # Get a broader view of the Version 4.0.0 section in CHANGELOG.md
if [ -f "docs/CHANGELOG.md" ]; then
head -30 docs/CHANGELOG.md
fiRepository: typetools/checker-framework Length of output: 855 🏁 Script executed: # Search for Java/release version configuration across build.gradle files
rg "options\.release|sourceCompatibility|targetCompatibility|version\s*=" -B2 -A2 --type gradleRepository: typetools/checker-framework Length of output: 2328 🏁 Script executed: # Verify which Checker Framework artifacts are actually published/distributed
# Look for what gets published in the build configuration
rg "publishing|artifacts\s*{|jar\s*{" -A5 build.gradle | head -50Repository: typetools/checker-framework Length of output: 209 🏁 Script executed: # Check if checker-qual-android is explicitly mentioned in build.gradle
rg "checker-qual-android" build.gradle -B3 -A3Repository: typetools/checker-framework Length of output: 834 Make the artifact compatibility break explicit and include the missing module. This entry currently reads as though only the launcher moved to JDK 21 and the remaining jars still work on some unspecified "earlier" Java. In this PR, only Suggested wording-To run the Checker Framework, you need to use a JDK 21 or later version of
-javac. The Checker Framework can run on any Java project, including projects
-that compile to Java 8, 11, or 17 bytecodes and run on JRE versions 8, 11, or
-17.
-
-The type qualifiers and utility libraries in `checker-qual.jar` and
-`checker-util.jar` still use Java 11 bytecode. Thus, they may be included in
-projects that run under an earlier version of Java.
+To run the Checker Framework, you need JDK 21 or later. The Checker Framework
+can still analyze source code that targets older Java releases, such as
+`--release 8`, `11`, or `17`.
+
+Most Checker Framework artifacts now use Java 21 bytecode. The exceptions are
+`checker-qual.jar`, `checker-qual-android.jar`, and `checker-util.jar`, which
+still use Java 11 bytecode.📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| ### Implementation details | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| ### Closed issues | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| ## Version 3.54.1 (2026-04-01) | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| ### User-visible changes | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.