This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: using "eval" in an applet?
- From: Per Bothner <per at bothner dot com>
- To: alex mitchell <lexaay at gmail dot com>
- Cc: "kawa at sourceware dot org" <kawa at sourceware dot org>
- Date: Wed, 23 Nov 2011 01:29:37 -0800
- Subject: Re: using "eval" in an applet?
- References: <CAF2D940.26826%lexaay@gmail.com>
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/