This is the mail archive of the kawa@sources.redhat.com 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: KAWA: compilation error: define-simple-class


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)
 	  {



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