Integrated: 8377334: Test framework used by langtools regression tests can produce false positives

Chen Liang liach at openjdk.org
Mon Feb 9 21:39:02 UTC 2026


The compile task in JavacTemplateTestBase skipped some steps, resulting in missing errors.

Two test cases in RecordCompilationTests introduced unrelated compile errors that hide the original error. One test case in SealedCompilationTest does not declare a base nested class as static, so the subclass cannot use a static modifier and fails compilation. Simply made the base nested class static to allow that.

-------------

Commit messages:
 - 8377334

Changes: https://git.openjdk.org/jdk/pull/29620/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=29620&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8377334
  Stats: 10 lines in 3 files changed: 2 ins; 0 del; 8 mod
  Patch: https://git.openjdk.org/jdk/pull/29620.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/29620/head:pull/29620

PR: https://git.openjdk.org/jdk/pull/29620


More information about the compiler-dev mailing list