This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: class loader
- To: Jeff Sturm <jsturm at one-point dot com>
- Subject: Re: class loader
- From: Tom Tromey <tromey at redhat dot com>
- Date: 03 Apr 2001 11:44:51 -0600
- Cc: Java Discuss List <java at gcc dot gnu dot org>
- References: <Pine.LNX.4.10.10104021911150.29468-100000@mars.deadcafe.org>
- Reply-To: tromey at redhat dot com
>>>>> "Jeff" == Jeff Sturm <jsturm@one-point.com> writes:
>> The argument is: `null' is correct as far as the docs go, but some
>> real programs rely on the return value never being null. Apparently
>> neither the Sun nor IBM JDKs ever return null, so in effect we would
>> be making this change in the name of bug compatibility.
Jeff> Not true. Try the following on any version of the JDK:
Jeff> System.out.println(Class.forName("java.lang.Object").getClassLoader());
Thanks. I hadn't tried it -- I just took the reporter on faith.
In that case I think we should just leave it as-is.
Tom