[ 
https://issues.apache.org/jira/browse/CAMEL-9236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14965393#comment-14965393
 ] 

ASF GitHub Bot commented on CAMEL-9236:
---------------------------------------

Github user duro1 closed the pull request at:

    https://github.com/apache/camel/pull/651


> Tokenize with regex grouping has a small bug
> --------------------------------------------
>
>                 Key: CAMEL-9236
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9236
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>            Reporter: Chad Durovec
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.17.0, 2.16.1, 2.15.5
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> Looks like a copy/paste error is preventing the grouping functionality from 
> being executed by the helper object. 
> group should be passed to the delegate's tokenize method. 
> camel-core/src/main/java/org/apache/camel/builder/ExpressionClause.java 
>     /** 
>      * Evaluates a token expression on the message body 
>      * 
>      * @param token the token 
>      * @param regex whether the token is a regular expression or not 
>      * @param group to group by the given number 
>      * @return the builder to continue processing the DSL 
>      */ 
>     public T tokenize(String token, boolean regex, int group) { 
>         return delegate.tokenize(token, regex); 
>     } 



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

Reply via email to