This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: using "eval" in an applet?


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]