[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: A query on the classloader architecture
From: |
Jeroen Frijters |
Subject: |
RE: A query on the classloader architecture |
Date: |
Fri, 9 Jul 2004 18:37:22 +0200 |
Archie Cobbs wrote:
> Hmm.. you mean the statement "Sun's VM returns null for the
> boot loader" ?
> Otherwise I'm not sure what you're asking me to clarify...
No, originally you wrote:
> The Sun API spec clearly states that
> Class.getClassLoader() may return
> null, and in fact MUST return null for primitive type
> Class objects.
> So why worry about obviously buggy software?
I responded to this by saying that these vague spec statements don't
really help, in practice you have to be compatible with Sun's
implementation. Yes, it's legal to return null from getClassLoader
(IMHO, even for "application" classes), but in reality this breaks lots
of code. Yes, it's legal not to return null for "system" classes (e.g.
java.lang.Object), but again, I'm sure this will break some code.
Regards,
Jeroen
- Re: A query on the classloader architecture, (continued)
RE: A query on the classloader architecture, Jeroen Frijters, 2004/07/09
RE: A query on the classloader architecture, Jeroen Frijters, 2004/07/09
RE: A query on the classloader architecture, Jeroen Frijters, 2004/07/09
RE: A query on the classloader architecture,
Jeroen Frijters <=
RE: A query on the classloader architecture, Jeroen Frijters, 2004/07/11