Skip to content

Fixes ISSUE-43903: Fix JDK15 compilation after removal of NashornJS

Nashorn JS was removed in JDK15, an alternative is mozilla/rhino, an open source JavaScript engine. Usage of Nashorn has been removed and changed to use rhino instead.

A couple of libraries have also been added to support rhino, those don't have any extra dependency and are standalone.

Affected libraries

library version status comment
rhino 1.7.13 added
rhino-engine 1.7.13 added This library is necessary to support ScriptEngine functionality, similar to what NashornJS offered
yuicompressor 2.4.2 removed Yui-compression has been removed, this file also contained an embedded old rhino library
YUIAnt - removed yuicompressor has been removed, this library is not needed anymore
js.jar - removed This was an older version of rhino library renamed to js.jar and used by the yuicompressor tasks
ob-rhino 1.6R7 removed This was an older version of rhino with package structure changed to contain org.openbravo, used by yuicompressor tasks

Libraries

rhino

rhino-engine

Try and testing

  • Test usage from OBBindings manually
  • Try: Has a minor API Change.
  • Try-retail:

Performance testing

  • Testing is necessary due to possible leaks in rhino non-heap memory, found earlier during development of the Discount Engine.

Pending MRs (Wait for it to be merged and rebase)

MRs related

Links

Edited by Asier Lostalé

Merge request reports