[Helma-dev] Rhino 1.6/E4X working (diff attached)

Marcello Bastéa-Forte marcello at cellosoft.com
Mon Jun 12 19:40:17 CEST 2006


Hey all,

Not sure where/how to post this, but I've got Rhino 1.6 compiling and 
running with Helma CVS.  I've never created a diff before, but I assume 
Eclipse did it correctly.

These are the absolute minimal changes necessary to do it, but I'm sure 
a cleaner solutions exist. 

There were a few PropertyExceptions that are not thrown anymore (the 
class is gone). 

In order to get the manage documentation system working, since 
org.mozilla.javascript.TokenStream is not public (it's package access), 
I made an injection class in the same package that exposes the methods 
publicly.  From my research, it appears that 
org.mozilla.javascript.Parser is what should be used instead, but I 
could not see any obvious "ports."  I think Helma doc could use 
reworking anyway, so I did not want to spend extra time when this 
hackish solution is not any worse than what Helma already does.

Last of all, in the debugger, with NativeCall, there no longer is a 
getThisObj(), so I just use null for now.  Haven't seen any results of 
what, if anything, this breaks/affects. 

I think those are worth it to get E4X working, although I am not sure 
how keen I am on the XMLBeans jar being 2.5MB...

Let me know if this works for people, I have only done some very basic 
tests with E4X to see if it works.

Marcello
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: helma-rhino1.6-patch.diff
Url: http://helma.org/pipermail/helma-dev/attachments/20060612/9450c0a5/attachment.ksh 


More information about the Helma-dev mailing list