JDK-7145771 : [macosx] CreateFont/Register.java test fails because of cached results of getAllFonts()
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.
The OS X specific subclass of SunGraphicsEnvironment has an implementation
of getAllFonts() which caches the list of fonts on first call.
Thus it will never report additional fonts added after that first call.
The fix is to remove that caching behaviour.
OK, missed that its 4 tests.
The runs that pass are "neither" and "getfamilies" and
"getfonts" and "both" are the ones that fail as thus :
** END Font Names ** After registration
Exception in thread "main" java.lang.RuntimeException: Font array length
However this isn't a regression from Apple JDK6. These all fail there too.
Was this really new in b11 ?
There are 4 @run commands in the test. I have the failure consistently reproduced in the 3rd run, even if I remove '@' from the first two (so they are skipped). In this run, Untitled font is not reported after registration.
Now, as I understand, 10.6.8 is not supported; this test does fail on several machines with 10.7.3. Please try 10.7.3!
I tried with b11 and the test passes for me.
If you have the font "Untitled" installed somewhere already
then that would make the test fail.
Note that I used 10.6.8 but I can't think why that would matter.