This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


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

Re: java/1376




On Mon, 25 Jun 2001, Jeff Dahl - Test/MTI wrote:
> 267           if (!obj.getClass().getClassLoader().equals(cl))

That looks like your problem there... getClassLoader() will be `null'
for compiled classes.

I'm not quite sure what's correct here, but this might work for you:

Index: DriverManager.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/sql/DriverManager.java,v
retrieving revision 1.3
diff -u -r1.3 DriverManager.java
--- DriverManager.java  2000/12/28 22:21:36     1.3
+++ DriverManager.java  2001/06/25 22:13:14
@@ -264,7 +264,7 @@
   while(e.hasMoreElements())
     {
       Object obj = e.nextElement();
-      if (!obj.getClass().getClassLoader().equals(cl))
+      if (!obj.getClass().getClassLoader() == cl)
         continue;
 
       v.addElement(obj);



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