[kaffe] CVS kaffe (dalibor): Fixed class loader problem in Proxy

Kaffe CVS cvs-commits at kaffe.org
Wed Apr 28 09:57:02 PDT 2004


PatchSet 4706 
Date: 2004/04/28 16:22:41
Author: dalibor
Branch: HEAD
Tag: (none) 
Log:
Fixed class loader problem in Proxy

2004-04-28  Adam Heath <doogie at debian.org>

        * libraries/javalib/java/lang/reflect/Proxy.java:
        (generate) Classloader fix for OfBiz.

Members: 
	ChangeLog:1.2282->1.2283 
	libraries/javalib/java/lang/reflect/Proxy.java:1.3->1.4 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2282 kaffe/ChangeLog:1.2283
--- kaffe/ChangeLog:1.2282	Wed Apr 28 12:01:43 2004
+++ kaffe/ChangeLog	Wed Apr 28 16:22:41 2004
@@ -1,3 +1,8 @@
+2004-04-28  Adam Heath <doogie at debian.org>
+
+	* libraries/javalib/java/lang/reflect/Proxy.java:
+	(generate) Classloader fix for OfBiz.
+
 2004-04-28  Dalibor Topic  <robilad at kaffe.org>
 
 	* config/i386/beos/md.h,
Index: kaffe/libraries/javalib/java/lang/reflect/Proxy.java
diff -u kaffe/libraries/javalib/java/lang/reflect/Proxy.java:1.3 kaffe/libraries/javalib/java/lang/reflect/Proxy.java:1.4
--- kaffe/libraries/javalib/java/lang/reflect/Proxy.java:1.3	Mon Mar 22 11:24:48 2004
+++ kaffe/libraries/javalib/java/lang/reflect/Proxy.java	Wed Apr 28 16:22:43 2004
@@ -1340,7 +1340,7 @@
           Object[] args = {qualName, bytecode, new Integer(0),
                            new Integer(bytecode.length),
                            /* Object.class.getProtectionDomain() */ };
-          Class clazz = (Class) m.invoke(loader, args);
+          Class clazz = (Class) m.invoke(loader != null ? loader : ClassLoader.getSystemClassLoader(), args);
           m.setAccessible(false);
 
           // Finally, initialize the m field of the proxy class, before




More information about the kaffe mailing list