thats why you need to delcare the class itself public.
Beanshell is not running under the protection scheme of its caller.
Its like its "external" ...
----- Original Message -----
From: Alexey Zinger
To: ;
Sent: Monday, July 31, 2006 10:00 AM
Subject: Re: [Beanshell-users] Running it smooth and simple... in Eclipse?Plz fix me out

Wade Chandler <> wrote:
--- David Lee wrote:
> As mentioned before you need the make the entire
> class public.
> public class MyFrickinClass {
> ...

Just to add ... not giving a protection level (public,
protected, or private) automatically defaults to
package protected.


That said, however, the package scope protection does not work as expected when 2 classes are loaded by different class loaders, which I believe happened here.  When 2 class loaders load even the same class, the objects they produce will be considered of 2 different classes.  Similarly, if 2 class loaders load things from the same package, package-scope access will not work between the objects they produce.

2001 Honda CBR600F4i (CCS)
1992 Kawasaki EX500

Want to be your own boss? Learn how on Yahoo! Small Business.

Take Surveys. Earn Cash. Influence the Future of IT
Join's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash

Beanshell-users mailing list