This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: KAWA: compilation error: define-simple-class
- From: Chris Dean <ctdean at sokitomi dot com>
- To: Vladimir Tsichevski <wowa at jet dot msk dot su>
- Cc: Kawa List <kawa at sources dot redhat dot com>
- Date: Mon, 07 Apr 2003 10:41:05 -0700
- Subject: Re: KAWA: compilation error: define-simple-class
- References: <3E91874A.3000003@jet.msk.su>
Try this patch.
Regards,
Chris Dean
Index: gnu/expr/LambdaExp.java
===================================================================
RCS file: /cvs/kawa/kawa/gnu/expr/LambdaExp.java,v
retrieving revision 1.72
diff -u -r1.72 LambdaExp.java
--- gnu/expr/LambdaExp.java 6 Apr 2003 20:40:41 -0000 1.72
+++ gnu/expr/LambdaExp.java 7 Apr 2003 17:39:48 -0000
@@ -425,7 +425,10 @@
}
else
{
- code.emitLoad(curLambda.closureEnv);
+ if (curLambda.closureEnv == null)
+ code.emitPushThis();
+ else
+ code.emitLoad(curLambda.closureEnv);
LambdaExp parent = curLambda.outerLambda();
while (parent != this)
{