As discussed recently on ofbiz-users mailing list, I proposed to upgrade the Beanshell jar used by OFBiz (framework/base/lib/scripting/bsh.jar), which is based on a 1.3a1, to the current "stable" version, 2.0b4.
This has the following advantages:
- JDK1.5 interpretation capability
- various bugfixes
However as explained by David E. Jones here:
...it will be necessary to patch the source to allow for the script parsing on which OFBiz depends.
This fix MAY also resolve this bug: