This is the mail archive of the
java-discuss@sources.redhat.com
mailing list for the Java project.
Re: Array classes and class loaders
- To: Bryce McKinlay <bryce at albatross dot co dot nz>
- Subject: Re: Array classes and class loaders
- From: Tom Tromey <tromey at redhat dot com>
- Date: 05 Jan 2001 10:29:05 -0700
- Cc: java-discuss at sources dot redhat dot com
- References: <3A554AF0.57E70151@albatross.co.nz> <3A55523C.E6691294@albatross.co.nz>
- Reply-To: tromey at redhat dot com
Bryce> Okay, I RTFM'ed and I think I understand this now. Problem is
Bryce> the "initiating class loader" is always going to be null until
Bryce> the compiler is modified to pass the calling class to things
Bryce> like _Jv_NewArray. Oh well.
I think the current plan is to instead somehow modify the runtime to
be able to find the caller's class, perhaps by the same kind of
mechanism we use to generate the stack trace. Maybe we'd have to add
code to the compiler for platforms where we can't do the backtracing
trick any other way. (Also there's the issue of finding the class for
interpreter frames.)
Tom