class loader
Tom Tromey
tromey@redhat.com
Tue Apr 3 10:36:00 GMT 2001
>>>>> "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
More information about the Java
mailing list