[e-lang] Modifying safeScope?
Kevin Reid
kpreid at mac.com
Mon Feb 22 06:35:50 PST 2010
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/>
More information about the e-lang
mailing list