This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
null ClassLoader
- To: java at gcc dot gnu dot org
- Subject: null ClassLoader
- From: Torsten Rüger <torsten dot rueger at firsthop dot com>
- Date: Fri, 26 Oct 2001 11:36:47 +0300
Moi,
I stumbled across a smaller annoyance: When you write
someObject.getClass().getClassLoader() you get null back.
Now, I know it says in the spec: "some JVM implementations may return
null to signal the bootstrap ClassLoader", just in practise no other JVM
that I know does.
So what happens is that people rely on this and then have to touch code
when they want to use gcj. A hinderance to quick acceptance. And simple
to change, I'm sure.
Could someone change java.lang.Class so it never returns null ClassLoader?
Cheers
Torsten