[jdk25u-dev] RFR: 8341778: Some javac tests ignore the result of JavacTask::call

Roland Mesde duke at openjdk.org
Tue Dec 2 17:20:59 UTC 2025


Backporting JDK-8341778: Some javac tests ignore the result of JavacTask::call. 

Multiple tests ignore the Boolean return value from JavacTask.call(), causing silent failures where tests appear to pass despite actual compilation errors. This fix adds result validation to all affected test cases.. Ran GHA Sanity Checks (passed), jtreg tier1 tests (passed) and related tests (passed) on linux-x64, linux-aarch64, macos-aarch64 and windows-x64:

(Passed) - make test-tier1
(Passed) - make test TEST=test/jdk/java/beans
(Passed) - make test TEST=test/hotspot/jtreg/vmTestbase/gc/g1/unloading

Results are attached.

[linux-aarch64-jtreg-tier1.log](https://github.com/user-attachments/files/23886979/linux-aarch64-jtreg-tier1.log)
[linux-aarch64-specific-test.log](https://github.com/user-attachments/files/23886980/linux-aarch64-specific-test.log)
[linux-aarch64-specific-2-test.log](https://github.com/user-attachments/files/23886981/linux-aarch64-specific-2-test.log)
[linux-x64-jtreg-tier1.log](https://github.com/user-attachments/files/23886982/linux-x64-jtreg-tier1.log)
[linux-x64-specific-test.log](https://github.com/user-attachments/files/23886983/linux-x64-specific-test.log)
[linux-x64-specific-2-test.log](https://github.com/user-attachments/files/23886984/linux-x64-specific-2-test.log)
[macos-aarch64-jtreg-tier1.log](https://github.com/user-attachments/files/23886985/macos-aarch64-jtreg-tier1.log)
[macos-aarch64-specific-test.log](https://github.com/user-attachments/files/23886986/macos-aarch64-specific-test.log)
[macos-aarch64-specific-2-test.log](https://github.com/user-attachments/files/23886987/macos-aarch64-specific-2-test.log)
[windows-x64-jtreg-tier1.log](https://github.com/user-attachments/files/23886988/windows-x64-jtreg-tier1.log)
[windows-x64-specific-test.log](https://github.com/user-attachments/files/23886989/windows-x64-specific-test.log)
[windows-x64-specific-2-test.log](https://github.com/user-attachments/files/23886990/windows-x64-specific-2-test.log)

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

Commit messages:
 - Backport 8adb052b46f90e8a0605cfc5ddc667acb7c61952

Changes: https://git.openjdk.org/jdk25u-dev/pull/40/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk25u-dev&pr=40&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8341778
  Stats: 136 lines in 33 files changed: 88 ins; 1 del; 47 mod
  Patch: https://git.openjdk.org/jdk25u-dev/pull/40.diff
  Fetch: git fetch https://git.openjdk.org/jdk25u-dev.git pull/40/head:pull/40

PR: https://git.openjdk.org/jdk25u-dev/pull/40


More information about the jdk-updates-dev mailing list