[jdk11u-dev] RFR: 8377450: [11u] Fix uncompilable tests PaletteTester, GetBoundsResizeTest, AddRemoveMenuBarTest_*
David Sladký
duke at openjdk.org
Tue Feb 10 13:18:37 UTC 2026
Fix of [JDK-8377450](https://bugs.openjdk.org/browse/JDK-8377450) - [11u] Uncompilable tests.
Some test are uncompilable because their source code includes features not supported by jdk11. In this case it is use of `"""` for string block and `String.formatted()` method. These tests are:
- `test/jdk/java/awt/Frame/GetBoundsResizeTest.java`
- `test/jdk/sun/awt/PaletteTester.java`
- `test/jdk/java/awt/MenuBar/AddRemoveMenuBarTests/AddRemoveMenuBarTest_1.java`
- `test/jdk/java/awt/MenuBar/AddRemoveMenuBarTests/AddRemoveMenuBarTest_2.java`
- `test/jdk/java/awt/MenuBar/AddRemoveMenuBarTests/AddRemoveMenuBarTest_3.java`
- `test/jdk/java/awt/MenuBar/AddRemoveMenuBarTests/AddRemoveMenuBarTest_4.java`
The test above were run after applying the fix and they do compile, run and - by my visual inspection - they also pass. With a exception of `PaletteTester.java` which is marked as Windows specific, hence I did not run it on Linux machine. But it does still compiles successfully.
### Tier 1 test - PASSES
### GTest - PASSES
### GHA - PASSES
Only `macos-x64 / test (hs/tier1 serviceability)` fails, which seems to be common occurrence in other PRs too -> unrelated to this PR.
-------------
Commit messages:
- 8377450: [11u] Fix uncompilable tests PaletteTester, GetBoundsResizeTest, AddRemoveMenuBarTest_*
Changes: https://git.openjdk.org/jdk11u-dev/pull/3148/files
Webrev: https://webrevs.openjdk.org/?repo=jdk11u-dev&pr=3148&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8377450
Stats: 102 lines in 6 files changed: 0 ins; 6 del; 96 mod
Patch: https://git.openjdk.org/jdk11u-dev/pull/3148.diff
Fetch: git fetch https://git.openjdk.org/jdk11u-dev.git pull/3148/head:pull/3148
PR: https://git.openjdk.org/jdk11u-dev/pull/3148
More information about the jdk-updates-dev
mailing list