[ 
https://issues.apache.org/jira/browse/DERBY-6868?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Knut Anders Hatlen updated DERBY-6868:
--------------------------------------
    Attachment: d6868.diff

Attaching the patch d6868.diff which makes the Sed class use java.util.regex 
instead of Jakarta ORO for regular expressions. It also removes all references 
to Jakarta ORO from the source. Need to {{svn rm 
tools/java/jakarta-oro-2.0.8.jar}} in addition to applying the patch.

One substitution pattern had to be changed because the java.util.regex dialect 
is slightly different from ORO's dialect. Specifically, java.util.regex treats 
'\{' and '\}' as special characters, and they need to be escaped with a 
backslashes.

derbyall and suites.All ran cleanly. (Jakarta ORO was only used by derbyall.)

> Remove the dependency on Jakarta ORO
> ------------------------------------
>
>                 Key: DERBY-6868
>                 URL: https://issues.apache.org/jira/browse/DERBY-6868
>             Project: Derby
>          Issue Type: Improvement
>          Components: Build tools, Test
>    Affects Versions: 10.13.0.0
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>         Attachments: d6868.diff
>
>
> The Derby source code repository contains jakarta-oro-2.0.8.jar in the 
> tools/java directory. This jar file provides regex functionality used by the 
> Sed class in the old test harness.
> Modern JDK versions include the java.util.regex package, which provides 
> similar functionality. The Jakarta ORO project is retired and has been moved 
> to the Apache Attic.
> We should change the implementation of the Sed class to use java.util.regex 
> instead of Jakarta ORO because:
> - it reduces the number of binaries in the source code repository
> - java.util.regex is a maintained library, ORO is not



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to