Community
Participate
Working Groups
org.mozilla.javascript.ScriptOrFnNode is removed in Rhino 1.7R3. AFAICT, org.eclipse.birt.core.data.OlapExpressionCompiler and org.eclipse.birt.core.data.ExpressionParserUtility are the only classes that are affected by this. In fact, all plugins that are a part of the birt.chart feature (checked out from CVS HEAD as of 2011-07-07) compile just fine with Rhino 1.7R3 except org.eclipse.birt.core which contains the aforementioned two classes. One concern might be that org.eclipse.birt.core's MANIFEST.MF contains this: org.mozilla.javascript;bundle-version="[1.6.0,2.0.0)";visibility:=reexport. Moving 1.7R3 will likely affect consumers due to API changes. The range may also need to be tweaked if Rhino upstream doesn't have a strict API policy (as would appear to be the case; note: I'm not familiar with Rhino upstream or their API policy). I'm not planning to update Rhino to 1.7R3 in Orbit right now, but it might be worth moving for Juno seeing as 1.7R3 was released 2011-06-03 and is the latest upstream release. New in Rhino 1.7R3: https://developer.mozilla.org/en/New_in_Rhino_1.7R3 I've put up an attempt at a 1.7R3 bundle here: http://fedorapeople.org/~overholt/org.mozilla.javascript_1.7.3.201107071437.jar in case anyone wants to try it out. Thanks.
Created attachment 208049 [details] first go at a patch to update I've been picking away at this over the past few days but I think I'm at the point that someone from BIRT should take a look. This patch is a simple change to use the new API in 1.7R3. I get 2 errors with the birt.core test suite and ~30 failures. The errors seem to come from ExpressionParserUtility. I think it needs to be updated to work with the new AST API in Rhino 1.7R3.
Updating summary.
Created attachment 208051 [details] first go at a patch to update to Rhino 1.7R3
I'm getting hit with this on my build. Buckminster can't seem to resolve it anyway.. BTW, I'm wondering if it is possible to move the o.m.javascript dependencies out of birt.core altogether? I ask because I use the chart engine stuff and AFAICT there is no need for the expression stuff in there at all.
Has this patch been applied? This one is really critical for build consumers.
Updating to request an update to 1.7R4 (new Orbit bug).
Done. https://github.com/eclipse/birt/commit/87eaf0d9eddeb8eff5f6a91a425cbb5d967c0647
verified in the build from 5/28 that the issue was resolved.