This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: an applet as a module
- To: Toni Wuersch <arw at echonyc dot com>
- Subject: Re: an applet as a module
- From: Per Bothner <per at bothner dot com>
- Date: 18 Jul 2001 18:18:48 -0700
- Cc: kawa at sources dot redhat dot com
- References: <5.1.0.14.2.20010717111748.00a20a40@pop.echonyc.com>
Toni Wuersch <arw@echonyc.com> writes:
> The --applet flag doesn't work in kawa 1.6.94.
You are right. I had been unable to run appletviewer in the
check-scribble test, so I didn't know. (I finally figured out the
problem in the testsuite and checked in a fix.)
The following patch seems to fix it. Thanks for bringing this to my
attention.
Index: LispInterpreter.java
===================================================================
RCS file: /cvs/kawa/kawa/gnu/kawa/lispexpr/LispInterpreter.java,v
retrieving revision 1.1
diff -u -r1.1 LispInterpreter.java
--- LispInterpreter.java 2001/07/18 20:02:12 1.1
+++ LispInterpreter.java 2001/07/19 01:06:10
@@ -37,6 +37,8 @@
{
kawa.lang.Translator tr = new kawa.lang.Translator (Environment.user(), messages);
ModuleExp mexp = new ModuleExp();
+ if (Compilation.generateAppletDefault)
+ mexp.setFlag(ModuleExp.SUPERTYPE_SPECIFIED);
mexp.setFile(port.getName());
java.util.Vector forms = new java.util.Vector(20);
tr.push(mexp);
--
--Per Bothner
per@bothner.com http://www.bothner.com/per/