[jdk11u-dev] Integrated: 8377450: [11u] Tests using Text Blocks fail to compile
David Sladký
duke at openjdk.org
Wed Feb 18 11:02:28 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.
This pull request has now been integrated.
Changeset: 2f777a94
Author: David Sladký <sladky.david at proton.me>
Committer: Severin Gehwolf <sgehwolf at openjdk.org>
URL: https://git.openjdk.org/jdk11u-dev/commit/2f777a94ef1a8910d0e29be11da0a78aaff63949
Stats: 102 lines in 6 files changed: 0 ins; 6 del; 96 mod
8377450: [11u] Tests using Text Blocks fail to compile
Reviewed-by: sgehwolf
-------------
PR: https://git.openjdk.org/jdk11u-dev/pull/3148
More information about the jdk-updates-dev
mailing list