When running applications that have their own UI's created, I was
getting exceptions all the time. Tom Tromey suggested this fix a while
back, and it has seemed to fix the problem every time. It has not had
any adverse side effects either.
2005-10-12 Lillian Angel <address@hidden>
* javax/swing/UIDefaults.java
(getUIClass): Fixed to use the system class loader if
the loader is null.
------------------------------------------------------------------------
Index: javax/swing/UIDefaults.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/UIDefaults.java,v
retrieving revision 1.23
diff -u -r1.23 UIDefaults.java
--- javax/swing/UIDefaults.java 28 Sep 2005 14:53:40 -0000 1.23
+++ javax/swing/UIDefaults.java 12 Oct 2005 20:19:20 -0000
@@ -674,9 +674,9 @@
return null;
try
{
- if (loader != null)
- return loader.loadClass (className);
- return Class.forName (className);
+ if (loader == null)
+ loader = ClassLoader.getSystemClassLoader();
+ return loader.loadClass (className);
}
catch (Exception e)
{
------------------------------------------------------------------------
_______________________________________________
Classpath-patches mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/classpath-patches