This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: java/1376
- To: Jeff Dahl - Test/MTI <jddahl at micron dot com>
- Subject: Re: java/1376
- From: Jeff Sturm <jsturm at one-point dot com>
- Date: Mon, 25 Jun 2001 18:53:52 -0400 (EDT)
- cc: gcc-gnats at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, tromey at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, java-prs at gcc dot gnu dot org, jthwaites at michaelhouse dot com
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);