[jdk11u-dev] RFR: 8377450: [11u] Uncompilable tests

Severin Gehwolf sgehwolf at openjdk.org
Tue Feb 10 15:42:34 UTC 2026


On Tue, 10 Feb 2026 13:09:11 GMT, David Sladký <duke at openjdk.org> wrote:

> 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.

Makes sense. Text blocks are a JDK 15+ feature (JEP 378).

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

Marked as reviewed by sgehwolf (Reviewer).

PR Review: https://git.openjdk.org/jdk11u-dev/pull/3148#pullrequestreview-3779805531


More information about the jdk-updates-dev mailing list