[jira] Commented: (OFBIZ-528) Upgrade Beanshell library to version 2.0b4

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-528) Upgrade Beanshell library to version 2.0b4

Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-528?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12490723 ]

Cameron Smith commented on OFBIZ-528:
-------------------------------------

Hi.   The only specific issue I found, was that certain existing .bsh scripts, perhaps 1 in 10, broke with null pointers when I upgraded.   In these scripts, it was always possible to fix the problem very easily by putting in null checks.

In other words, I believe that that bsh 2.0 simply defaults variables to null more often.

Since we do not use the OFBiz frontend (except for webtools, which works fine), but use the ZK rich client framework, I have not looked into this more.

What I can say, is that the ZK framework itself, and any user written scripts, depend utterly on beanshell, and we have not found a single interpreter bug ever, using the jar file attached to this JIRA.   That is, if we write correct Java in our scripts, they work perfectly.  Apart from myself, we have 4 developers and 2 testers coding and/or using ZK scripts on a regular basis, so I reckon if there were any nasties, we would have found them by now.

We have two products currently using ZK and both are in the final stages of pre-production testing/beta testing, and I would be very surprised at this stage if we discover any beanshell-related issues.

Therefore, my only preoccupation with upgrading OFBiz to the attached jar would be that, either as part of the same commit, or very soon afterwards, there would have to be a systematic "sweep" of all OFBiz screens which use .bsh scripts, to tidy up their null handling.   That is, lots of little no-brainer fixes.

> Upgrade Beanshell library to version 2.0b4
> ------------------------------------------
>
>                 Key: OFBIZ-528
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-528
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Improvement
>          Components: framework
>    Affects Versions: SVN trunk
>         Environment: Windows XP, MySQL 5.0, JDK1.5, ofbiz_opentaps_473442
>            Reporter: Cameron Smith
>         Assigned To: David E. Jones
>         Attachments: bsh-2.0b4-mod-ofbiz.jar, BshClassManager.java, Interpreter.java, viewprofile.bsh
>
>
> 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:
> http://docs.ofbiz.org/display/OFBTECH/OFBiz+Customized+BeanShell+Source+%28with+ParsedScript+object%29
> ...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:
> https://issues.apache.org/jira/browse/OFBIZ-303

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.