This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


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

Re: class loader


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


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