From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Tromey To: tromey@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org Subject: Re: java/1376 Date: Tue, 26 Jun 2001 09:46:00 -0000 Message-id: <20010626164603.30826.qmail@sourceware.cygnus.com> X-SW-Source: 2001-06/msg01086.html List-Id: The following reply was made to PR java/1376; it has been noted by GNATS. From: Tom Tromey To: Jeff Sturm Cc: Jeff Dahl - Test/MTI , gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org, java-prs@gcc.gnu.org, jthwaites@michaelhouse.com Subject: Re: java/1376 Date: 26 Jun 2001 11:01:37 -0600 >>>>> "Jeff" == Jeff Sturm writes: >> On Mon, 25 Jun 2001, Jeff Dahl - Test/MTI wrote: >> 267 if (!obj.getClass().getClassLoader().equals(cl)) Jeff> That looks like your problem there... getClassLoader() will be `null' Jeff> for compiled classes. There's already a different fix for this on the gcc trunk. I also put it in to Classpath. It looks like this: ClassLoader loader = obj.getClass().getClassLoader(); if (loader == null) loader = ClassLoader.getSystemClassLoader(); if (!loader.equals(cl)) continue; Tom