-
Bug
-
Resolution: Fixed
-
P2
-
1.2.0
-
None
-
swing1.1
-
generic
-
generic
JEditorPane.registerEditorKitForContentType() takes a className without
taking a classLoader. Internally a Class.forName() is used. This makes
it impossible to create the EditorKit from anything but the class loader
used in Class.forName.
*NOTE* in 1.2, the class loader used by a class in rt.jar (like JEditorPane)
is the system classloader, which does *NOT* include CLASSPATH.
It may be worth checking if there are other places in Swing where this is done,
this is the second critical bug in this area that I find.
- eduardo
taking a classLoader. Internally a Class.forName() is used. This makes
it impossible to create the EditorKit from anything but the class loader
used in Class.forName.
*NOTE* in 1.2, the class loader used by a class in rt.jar (like JEditorPane)
is the system classloader, which does *NOT* include CLASSPATH.
It may be worth checking if there are other places in Swing where this is done,
this is the second critical bug in this area that I find.
- eduardo
- relates to
-
JDK-4120021 UIDefaults.getUI() always uses the system class loader.
-
- Closed
-