[jdk11u-dev] RFR: 8377450: [11u] Tests using Text Blocks fail to compile
duke
duke at openjdk.org
Wed Feb 18 10:33:33 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.
@TheMangovnik
Your change (at version ef3aaa9b6a140f664071782fda647651b1897950) is now ready to be sponsored by a Committer.
-------------
PR Comment: https://git.openjdk.org/jdk11u-dev/pull/3148#issuecomment-3920003750
More information about the jdk-updates-dev
mailing list