[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_12492528 ]

David E. Jones commented on OFBIZ-528:
--------------------------------------

The source code for 2.0b4 used for this is revision 21 from the SVN repository at:

http://ikayzo.org/svn/beanshell

I'll attach the patch used for these changes to this issue.

Thanks for your work on this Cameron. I spent a bit of time minimizing the patch, ie changing as little as possible, and changing the formatting to be more consistent with what bsh uses. There are 2 motivations for this:

1. make it easier to update in the future
2. increase our chances of getting this accepted into beanshell itself (though not really likely, it could happen!)

> 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.