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]

null ClassLoader


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


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