This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: java/1376
- To: Jeff Sturm <jsturm at one-point dot com>
- Subject: Re: java/1376
- From: Tom Tromey <tromey at redhat dot com>
- Date: 26 Jun 2001 11:01:37 -0600
- Cc: Jeff Dahl - Test/MTI <jddahl at micron dot com>, gcc-gnats at gcc dot gnu dot org, gcc-prs 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
- References: <Pine.LNX.4.10.10106251850280.13525-100000@mars.deadcafe.org>
- Reply-To: tromey at redhat dot com
>>>>> "Jeff" == Jeff Sturm <jsturm@one-point.com> 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