cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Bukanov ...@igor.fastmail.fm>
Subject Re: Rhino from mozilla.org and continuations
Date Fri, 24 Sep 2004 23:27:42 GMT
Igor Bukanov wrote:
> Igor Bukanov wrote:
> 
>> Ugo Cei wrote:
>>
>>> Igor Bukanov wrote:
>>>
>>>> http://bugzilla.mozilla.org/show_bug.cgi?id=258844 contains a 
>>>> working patch against Rhino CVS from mozilla.org to enable 
>>>> Continuation support there.
>>>
>>>
>>>
>>>
>>> What am I supposed to do if I want to play with it?
>>
>>
>> ...
>>
>>> 2) Do a cvs checkout and build since your patch is already applied?
>>
>>
>> Use this option.
>>
> 
> The attached patch against cocoon-2.1.5.1 simplifies "playing": it 
> changes Rhino bindings to use "org.mozilla.javascript.Function" instead 
> of "org.mozilla.javascript.continuations.Continuation" to refer to 
> script Continuation objects.
> 
> In Rhino from mozilla.org Continuation class is package-private and 
> implemented in a very different way compared with Rhino from 
> cocondev.org. On the other hand the class in both versions implements 
> Function interface and since the bindings in Cocoon use only 
> functionality available through this interface the patch minimize the 
> amount of code that has to be modified to use Rhino from mozilla.org.
> 

And here is a patch to alter cocoon-2.1.5.1 to use Rhino from mozilla.org.

The patch assumes that rhino1.5r4-continuations-20040228.jar is replaced 
   by rhino1_6R1pre.jar which should be produced by checking out the 
very latest CVS sources from mozilla.org, building js.jar and moving 
that to lib/core as rhino1_6R1pre.jar.

Regards, Igor

Mime
View raw message