Repository navigation
Test JDK 28 EA as a non-default JVM - #13557
Conversation
🟢 Java Benchmark SLOs — All performance SLOs passed
PR vs. master results
Commit: Load and DaCapo benchmarks can be triggered manually in the GitLab pipeline. Results will appear in the Benchmarking Platform UI after completion. |
4968f2c to
05139f7
Compare
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 05139f7940
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
JDK 28 becomes a blocking merge-queue test target even without NON_DEFAULT_JVMS opt-in. The protected-branch rules bypass the default JVM lists, so excluding 28 from those lists does not isolate EA failures.
🤖 Bits Code Review · Commit 05139f7
dougqh
left a comment
There was a problem hiding this comment.
Looks good overall, and the TODO(JDK-28-EA) tags make cleanup easy. One concern before this goes into the merge queue (inline). It's the same point the two bots raised.
05139f7 to
aaf0b68
Compare
c5f1023 to
6212e63
Compare
6212e63 to
aa7b48e
Compare
c28d71c to
ce09a4d
Compare
Add EA JDK 28 to the main, arm64 and latest-dep test matrices as a non-default JVM. Temporary changes are tagged with JDK-28-EA TODOs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…DEFAULT_JVMS] JDK 28 rejects ReflectionFactory.newConstructorForSerialization for non-serializable classes, which Objenesis (Mockito, Spock mocks) relies on. Re-enable it for test JVMs 28+ with -Djdk.reflect.allowNonSerializableConstruction=true, and skip the Maven smoke tests on JDK 28 as was done for previous EA JDKs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The JDT compiler bundled with Tomcat 7.0.37 Jasper cannot read Java 28 class files, so the generated JSP sources fail to compile. latestDepTest (Tomcat 9) keeps covering JDK 28. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ce09a4d to
e933da5
Compare
There was a problem hiding this comment.
More details
JDK 28 jobs intentionally block protected-branch pipelines; the author confirms the CI image is mirrored and the compatibility fixes followed non-default JVM runs. The completed static review found no reportable defects.
🤖 Bits Code Review · Commit e933da5
What Does This Do
Run EA JDK 28 as a non-default JVM, following what #11841 did for JDK 27, and work around the test failures it surfaces:
.gitlab-ci.yml: add28to the shared test JVM matrix and to thetest_inst_latest(_arm64)matrices.TestJvmConstraintsPlugin.kt: pass-Djdk.reflect.allowNonSerializableConstruction=trueto test JVMs 28+. JDK 28 rejectsReflectionFactory.newConstructorForSerializationfor non-serializable classes, which Objenesis relies on, so every Mockito or Spock mock failed (~99% of the JDK 28 failures, including the context propagation tests that use mocks).MavenSmokeTest.java: skip on JDK 28, as done for previous EA JDKs (the Maven build fails).jsp-2.3/build.gradle: cap thetestsuite at JDK 27. The JDT compiler bundled with Tomcat 7.0.37 Jasper cannot read Java 28 class files, so generated JSP sources fail to compile (java.lang.Long cannot be resolved).latestDepTest(Tomcat 9) keeps covering JDK 28.Every temporary change carries a
TODO(JDK-28-EA)comment:git grep JDK-28-EAlists every entry to clean up whentipmoves to 28. The Objenesis flag may outlive the GA: the JDK only re-enables the method temporarily, so it goes away with an Objenesis release that no longer needs it.Motivation
Prepare JDK 28 support ahead of its GA (2027-03-09). JDK 28 EA already contains the final Structured Concurrency API (JEP 543 - no longer preview)
Additional Notes
As with JDK 27 EA, protected-branch pipelines (master, merge queue) run every JVM of the matrix, so JDK 28 jobs block the merge queue.
🤖 Generated with Claude Code