RFR: 8358697: java/awt/font/TextLayout/MyanmarTextTest.java gives false positive result on headless machines

Manukumar V S mvs at openjdk.org
Wed Jun 18 16:26:13 UTC 2025


Issue:
java/awt/font/TextLayout/MyanmarTextTest.java passes on headless machines even though it creates GUI components. Ideally, when you create some GUI components in your code in a headless machine, it should through HeadlessException, but MyanmarTextTest.java seems to suppress it and gives a positive result.

Fix:
Need to throw jtreg.SkippedException in cases where some pre-conditions for running the test are not met.

Testing:
Tested using mach5 in all available platforms and got full PASS.

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

Commit messages:
 - 8358697: java/awt/font/TextLayout/MyanmarTextTest.java gives false positive result on headless machines

Changes: https://git.openjdk.org/jdk/pull/25879/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=25879&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8358697
  Stats: 9 lines in 1 file changed: 4 ins; 1 del; 4 mod
  Patch: https://git.openjdk.org/jdk/pull/25879.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/25879/head:pull/25879

PR: https://git.openjdk.org/jdk/pull/25879


More information about the client-libs-dev mailing list