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: Automatic servlet mapping


dufourd wrote:
Could you give me a quiet stable revision number that could be compiled with
ant. I tried the last release but it seemed not to compile.

The problem was introduced with revision 5374. You can try the attached patch, creates thus:

svn diff -r5374:5373 ReferenceExp.java>/tmp/RE.patch

I may not want this exact patch; I'm trying to recall
why I removed this code.

This builds kawa.jar with ant; I'm haven't tried to build
Kawa with servlet support using ant.  I'll look at that shortly.
--
	--Per Bothner
per@bothner.com   http://per.bothner.com/
Index: ReferenceExp.java
===================================================================
--- ReferenceExp.java	(revision 5374)
+++ ReferenceExp.java	(revision 5373)
@@ -88,7 +88,16 @@
           }
         value = binding.value.eval(ctx);
       }
+    // This isn't just an optimization; it's needed for module imports.
     else if (binding != null
+        && (binding.value instanceof QuoteExp
+            || binding.value instanceof LambdaExp)
+        && binding.value != QuoteExp.undefined_exp
+        && (! getDontDereference() || binding.isIndirectBinding()))
+      {
+        value = binding.value.eval(ctx);
+      }
+    else if (binding != null
              && binding.field != null && binding.field.getStaticFlag()
              && (! getDontDereference() || binding.isIndirectBinding()))
       {

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