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


>>>>> "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


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