JDK-6579696 : Regression testcase: java/awt/font/LogicalFonts/MappingTest.java Failed
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt:i18n
  • Affected Version: 6u3
  • Priority: P4
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2007-07-12
  • Updated: 2013-10-07
  • Resolved: 2013-10-07
Related Reports
Relates :  
Description
Build : JDK 6U3 b01
Platform: Windows XP_Prof(SP2) x86
Locale: th 
Regression script/test dirs used , was generated at:
/net/sqe1.sfbay/quality2/i18n/i18n_regression/script/6u3/build01_07112007


the testcase java/awt/font/LogicalFonts/MappingTest.java  fails with below exception :
==========================================
----------System.out:(21/871)*----------
LucidaSansRegular.ttf does not exist
LucidaSansRegular.ttf does not exist
LucidaSansRegular.ttf does not exist
LucidaSansRegular.ttf does not exist
LucidaSansRegular.ttf does not exist
LucidaSansRegular.ttf does not exist
LucidaSansRegular.ttf does not exist
LucidaSansRegular.ttf does not exist
LucidaSansRegular.ttf does not exist
LucidaSansRegular.ttf does not exist
LucidaSansRegular.ttf does not exist
LucidaSansRegular.ttf does not exist
LucidaSansRegular.ttf does not exist
LucidaSansRegular.ttf does not exist
LucidaSansRegular.ttf does not exist
LucidaSansRegular.ttf does not exist
LucidaSansRegular.ttf does not exist
LucidaSansRegular.ttf does not exist
LucidaSansRegular.ttf does not exist
LucidaSansRegular.ttf does not exist
Read golden data from H:\\jdk\\regression\\test\\java\\awt\\font\\LogicalFonts\\mapping.Windows.x-windows-874
----------System.err:(13/716)----------
java.lang.RuntimeException: Errors occurred.
	at MappingTest.main(MappingTest.java:122)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:619)
JavaTest Message: Test threw exception: java.lang.RuntimeException: Errors occurred.
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Errors occurred.
result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Errors occurred.
test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Errors occurred.
==========================================


Note: 
under this JDK6u3-b01 installation directory, the LucidaSansRegular.ttf was present under jre/lib/fonts directory .


Attachment:
the (.jtr) report file for this testcase is attached.

Report is accessible at:
/net/sekai2.sfbay/export2/java-g11n/web/j2se/6u3/i18n/reports/b01-wk1/regression/

Comments
The test runs OK with JDK 8 and 7u40 on Windows 7. Closing as Cannot Reproduce.
07-10-2013

EVALUATION This is a test bug. MappingTest assumes that java's fonts directory is $JAVA_HOME/lib/fonts while the actual fonts directory is $JAVA_HOME/jre/lib/fonts. Using Font2DTest, the font file for Thai is detected. When the same font file exists on $WINDOWS/fonts directory, the test passes. Perhaps that's the reason the issue was not detected earlier. Lowering the priority to P4 as this is not an issue in JDK but in the test.
12-07-2007