Re: Modifying safeScope?

Kevin Reid <[email protected]>
Newsgroups gmane.comp.lang.e.general
Message-ID <[email protected]>
On Feb 22, 2010, at 9:19, Thomas Leonard wrote:

> Another strange thing is that:
>
> ? interface SturdyRef {}
> java.lang.RuntimeException: Failed: can't redefine SturdyRef
>
> But I can override it using my loader. I think this is a good thing (I
> want to run my unit-tests in an environment with fake SturdyRef  
> objects
> that don't really use the network), but I'm wondering if there's some
> security reason that means it shouldn't be redefined (auditors, etc)?


This is from the “unshadowable names” auditors plan. The idea was that  
a certain set of nouns (all those in the safeScope) *always* have the  
values they do, so auditors can rely on their behavior.

This system has been superseded by the “guard-based auditing” plan,  
which allows auditors to instead get a certain amount of information  
about what nouns *are* bound to, but E-on-Java has not been updated to  
acknowledge this.

-- 
Kevin Reid                                  <http://switchb.org/kpreid/>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.