-
Backport
-
Resolution: Fixed
-
P1
-
None
-
b02
-
Verified
- backport of
-
JDK-6648381 FontConfiguration exception preventing applets from loading
-
- Closed
-
JDK-6648381
FontConfiguration exception preventing applets from loading
In 6u5 (actually started since 6u4b1), when the AWT thread is busy creating the EmbeddedFrame and AppContext, Plugin's main thread pumps all events up and waits a max of 5 secs for EmbeddedFrame to get created.
During the instantiation of EmbeddedFrame, FontConfiguration.getFontCharsetEncoder() tries to load the Charset(s) one by one. When encounters "Arial,ANSI-Charset" font with Charset name "default", since this Charset is not found on Asian locale system, this function wrongly tries to load <codebase>/default.class from the temp Plugin's ClassLoader.
Since there's no such class exists, ClassLoader.findClass() takes a long time.
The whole EmbeddedFrame creation process exceeds 5secs, and the EmbeddedFrame creation fails, leading to the plugin hangs problem seen.
Fix is to not loading <codebase>/default.class when Charset name "default" is encountered in FontConfiguration.getFontCharsetEncoder().
Will close CR# 6672382 as duplicate of this one.