null ClassLoader

Torsten Rüger torsten.rueger@firsthop.com
Fri Oct 26 00:33:00 GMT 2001


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



More information about the Java mailing list