This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FYI: Patch: gnu/javax/rmi/CORBA/DelegateFactory.java


Hi list,


I just commited the attached patch to megre a fix from classpath.


Michael


2004-03-16  Dalibor Topic  <robilad@kaffe.org>

	Reported by: Adam Heath <doogie@debian.org>
	* gnu/javax/rmi/CORBA/DelegateFactory.java (getInstance): Use context
	class loader.

Index: gnu/javax/rmi/CORBA/DelegateFactory.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/gnu/javax/rmi/CORBA/DelegateFactory.java,v
retrieving revision 1.1
diff -u -b -B -r1.1 DelegateFactory.java
--- gnu/javax/rmi/CORBA/DelegateFactory.java	29 Mar 2003 21:23:25 -0000	1.1
+++ gnu/javax/rmi/CORBA/DelegateFactory.java	16 Mar 2004 09:39:45 -0000
@@ -60,7 +60,9 @@
       }
     try
       {
-	Class dclass = Class.forName(dcname);
+	Class dclass = Class.forName(dcname, 
+				     true,
+				     Thread.currentThread().getContextClassLoader());
 	r = dclass.newInstance();
 	cache.put(type, r);
 	return r;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]