using "eval" in an applet?
alex mitchell
lexaay@gmail.com
Wed Nov 23 10:51:00 GMT 2011
Thanks, that works.
I'm using eval to run some very simple code, which only uses a subset of
Scheme, and no lambda expresions, so I *think* it should be safe.
Alex
On 11-11-23 5:29 PM, "Per Bothner" <per@bothner.com> wrote:
>On 11/23/2011 01:09 AM, alex mitchell wrote:
>> I get the following security exception when I use "eval" in an applet:
>>
>> gnu.text.SyntaxException:
>> <unknown>: internal compile error - caught
>> java.security.AccessControlException: access denied
>> (java.lang.RuntimePermission createClassLoader)
>>
>> Does anyone have any suggestions as to how to avoid this?
>
>You could change the compiledAvailable field in ModuleExp to false.
>That will cause eval to use the interpreter. But note the interpreter
>does support all the features of the language, and is prebably
>buggier, as it gets less testing. (The interpreter is normally
>just used for macro-expansion in syntax-case macros.)
>--
> --Per Bothner
>per@bothner.com http://per.bothner.com/
More information about the Kawa
mailing list