JDK-8231495 : Test java/awt/FontMetrics/MaxAdvanceIsMax.java failing on many Linux systems
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 11,13,14
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • Submitted: 2019-09-26
  • Updated: 2021-10-11
  • Resolved: 2021-10-11
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.
Other
tbdResolved
Related Reports
Duplicate :  
Relates :  
Sub Tasks
JDK-8223869 :  
Description
In SAP's test environment we see the test java/awt/FontMetrics/MaxAdvanceIsMax.java failing on at least 5 different Linux systems. Those include both, Suse and RedHat versions with different releases.

The error output observed is
java.lang.Exception: FAILED: getMaxAdvance is not max for font: java.awt.Font[family=L M Math Italic5,name=L M Math Italic5 Bold,style=bolditalic,size=10] getMaxAdvance(): 14 getWidths()[77]: 15
	at MaxAdvanceIsMax.main(MaxAdvanceIsMax.java:129)

or

java.lang.Exception: FAILED: getMaxAdvance is not max for font: java.awt.Font[family=Computer Modern Bright,name=Computer Modern Bright Bold Extended,style=bolditalic,size=10] getMaxAdvance(): 9 getWidths()[87]: 10
	at MaxAdvanceIsMax.main(MaxAdvanceIsMax.java:129)

or

java.lang.Exception: FAILED: getMaxAdvance is not max for font: java.awt.Font[family=DialogInput,name=DialogInput.bold,style=bolditalic,size=10] getMaxAdvance(): 6 getWidths()[127]: 10
	at MaxAdvanceIsMax.main(MaxAdvanceIsMax.java:129)

or

java.lang.Exception: FAILED: getMaxAdvance is not max for font: java.awt.Font[family=DialogInput,name=DialogInput.bold,style=bolditalic,size=10] getMaxAdvance(): 7 getWidths()[3]: 8
	at MaxAdvanceIsMax.main(MaxAdvanceIsMax.java:129)
Comments
Closing this one as duplicate of JDK-8221305. The test was retired and for JDK15 the spec was amended with JDK-8230672. Will take care of backporting JDK-8221305 so as to remove the test from 11u.
11-10-2021