This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: Automatic servlet mapping
- From: Per Bothner <per at bothner dot com>
- To: dufourd <marc dot dufourd at oppbtp dot fr>
- Cc: kawa at sources dot redhat dot com
- Date: Wed, 06 Sep 2006 19:46:45 -0700
- Subject: Re: Automatic servlet mapping
- References: <000901c6d199$f9c7f330$1950010a@oppbtp.fr>
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()))
{