Bug 528505 - Rebundled org.mozilla.javascript has same class names as regular Rhino
Summary: Rebundled org.mozilla.javascript has same class names as regular Rhino
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 4.6.0   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Birt-ReportEngine-inbox@eclipse.org CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-12 10:08 EST by Mark Thornton CLA
Modified: 2017-12-12 10:08 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Thornton CLA 2017-12-12 10:08:58 EST
If you change the maven coordinates but leave the class names unchanged than it is hard to work out what has gone wrong. Risk having two versions of the same packages on the class path.
Presumably this doesn't matter under OSGI but it is hell for the POJO version.

My class path includes /repository/rhino/js/1.7R1/js-1.7R1.jar!/org/mozilla/javascript/Parser.class before the BIRT Mozilla jar.

which later leads to

Caused by: java.lang.NoSuchMethodError: org.mozilla.javascript.Parser.parse(Ljava/lang/String;Ljava/lang/String;I)Lorg/mozilla/javascript/ast/AstRoot;
	at org.eclipse.birt.core.data.ExpressionParserUtility.parse(ExpressionParserUtility.java:186)

Why we have such an old version of js, is another matter, but it would be nice to resolve (or be aware of the conflict) in maven and not discover this at run time.