JDK-8075584 : [TESTBUG] test for 8067364 depends on hardwired text advance
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 8u60,9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux,os_x
  • CPU: generic
  • Submitted: 2015-03-20
  • Updated: 2017-01-11
  • Resolved: 2015-08-10
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 9 Other
9 b80Fixed openjdk7uFixed
Related Reports
Relates :  
Relates :  
Testsuite name: Regression
Test name(s): javax/print/PrintSEUmlauts/PrintSEUmlauts.java
Product(s) tested: JDK 9b54(64-bit), JDK 8u60b06(64-bit)
OS/architecture: Linux/x64

Error log file (if present): see comments

Reproducible: Always
Reproducible on machine: spb23196.ru.oracle.com

Is it a Regression: Yes ( see JDK-8067364 )
Regression introduced in release/build:
Test result on the last GAed release for this train: N/A
Test result on FCS:  N/A

Is it a platform specific issue: No (fails on MacOSX also)
[If platform specific issue] Is it a new (previously unsupported) OS/browser/mode testing: No
[If new configuration testing] Issue specific to execution mode or OS/browser version:No

Exception/Error from Log:
java.lang.RuntimeException: Expected <e4> to represent '\u00e4' but not found!
	at PrintSEUmlauts.testPrintAndExit(PrintSEUmlauts.java:110)
	at PrintSEUmlauts.access$000(PrintSEUmlauts.java:51)
	at PrintSEUmlauts$1.printJobCompleted(PrintSEUmlauts.java:79)
	at sun.print.PSStreamPrintJob.notifyEvent(PSStreamPrintJob.java:214)
	at sun.print.PSStreamPrintJob.printableJob(PSStreamPrintJob.java:380)
	at sun.print.PSStreamPrintJob.print(PSStreamPrintJob.java:337)
	at PrintSEUmlauts.main(PrintSEUmlauts.java:83)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:745)

JavaTest Message: Test threw exception: java.lang.RuntimeException: Expected <e4> to represent '\u00e4' but not found!
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Expected <e4> to represent '\u00e4' but not found!

Test run log location:
Steps to reproduce:  see comments

Hi Victor, here is the proposed patch: http://cr.openjdk.java.net/~neugens/JDK-8075584/webrev/ I'm also sending it to the mailing list for approval.

Sure, please go ahead to fix it in 9 and 8u-dev(8u60). Mario?

Hi Viktor, Sorry, somehow I didn't see receive those messages :( If it's still valid, I'll correct the test on 9 and 8 asap.

Mario, could you please fix it in 9 and 8u-dev ?

Its a 'bug' in the test. Its looking for the string "<e4> 7.44 100.0 100.0 S" when only the "<e4>" part matters. The 2nd value is the 'desired width' which depends on the font used on screen and that can vary The systems on which it fail are simply picking up a different font.

Hi Victor, though the original bug has been assigned to me, it was fixed by Phil Race. Returning it back to you...