using "eval" in an applet?
Per Bothner
per@bothner.com
Wed Nov 23 09:30:00 GMT 2011
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