Re: Classloading issues...

"Pat Niemeyer" <[email protected]> Mon, 16 May 2005 12:37:39 -0500 (CDT)
Newsgroups gmane.comp.java.beanshell.devel
Message-ID <[email protected]>
> Patrick Niemeyer wrote:
> <snip>

> 1. Allow me to set the ClassLoader that BSH should use. As you know,
> your two suggestions won't work in the sandbox. However, I can simply

BeanShell currently has the notion of an externally supplied classloader,
however there was a known bug causing it not to be used correctly.  That
has been / should all be sorted out for the next release...

So, any externally supplied classloader will be used in preferenece to the
rest and that functionality is what will be encapsulated by the bsh
classloader, however it is exposed.

On the topic of the sandbox, I do have a question there.  I know that
access to the thread context classloader is priviledged.  Is it sufficient
to simply try to access it and catch the SecurityException if we fail or
do we have to find a way to completely shortcut that test?  I know that in
the old days on some browsers when a security exception was thrown it
brought things to a halt, regardless of how you tried to handle it.


thanks,
Pat




-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_idt12&alloc_id344&op=click