JDK-8223935 : PIT: java/awt/font/WindowsIndicFonts.java fails on windows10
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 11,12,13,14,15
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows
  • CPU: x86_64
  • Submitted: 2019-05-15
  • Updated: 2023-08-10
  • Resolved: 2020-03-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 13 JDK 14 JDK 15
11.0.8-oracleFixed 13.0.4Fixed 14.0.2Fixed 15 b16Fixed
Related Reports
Relates :  
Description
----------System.out:(13/331)----------
No codepoint for Devanagari
No codepoint for Bengali
No codepoint for Gurmukhi
No codepoint for Gujurati
No codepoint for Oriya
No codepoint for Tamil
No codepoint for Telugu
No codepoint for Kannada
No codepoint for Malayalam
No codepoint for Sinhala
No codepoint for Thai
No codepoint for Lao
No codepoint for Khmer
----------System.err:(13/847)----------
java.lang.RuntimeException: Missing support for a script
	at WindowsIndicFonts.main(WindowsIndicFonts.java:73)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:567)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.base/java.lang.Thread.run(Thread.java:830)

JavaTest Message: Test threw exception: java.lang.RuntimeException: Missing support for a script
Comments
Fix request (13u) Requesting backport to 13u for parity with 11u, applies cleanly.
27-05-2020

Fix Request (11u, 14u): The test issue is present in both, 11u and 14u. The patch applies cleanly to both.
25-03-2020

URL: https://hg.openjdk.java.net/jdk/jdk/rev/a9ffedffd435 User: psadhukhan Date: 2020-03-22 11:49:29 +0000
22-03-2020

URL: https://hg.openjdk.java.net/jdk/client/rev/a9ffedffd435 User: prr Date: 2020-03-18 00:39:26 +0000
18-03-2020

I just tried to execute this test on my Windows 10 PC. I had to install 12 different additional "XXX Supplemental Fonts" Windows features to pass the test successful. I guess this test should not be executed by default - it looks more like a test that shall be executed on special test machines configured for language support testing. I am very astonished that the test pass on your Windows Test Servers without problems - it seems they are configured to support a lot of different languages. Another option instead of excluding the test would be to not treat not having all fonts installed as an error - like mentioned before.
13-11-2019

Are the Indic fonts actually installed ? If not, then install them. If they are installed then there is something going on that it is better to investigate before excluding.
11-11-2019

We see this issue now in JDK11 as well, after backporting JDK-8208179. Is it an option to exclude this test? Or is there some fix on the way?
11-11-2019

So no Indic fonts are installed on this system. This test passes on our windows automated test machines which aren't exactly being set up to do I18N testing, in fact I think most are Windows Server 2016 or something like that, so this is surprising that they aren't there. Probably this just means either we need to set a pre-requisite for the test, or decide that we can't treat not having the fonts installed as a failure.
15-05-2019