Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-9236

Tokenize with regex grouping has a small bug

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.16.1, 2.15.5, 2.17.0
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      Novice

      Description

      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); }

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              duro Chad Durovec
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 48h
                48h
                Remaining:
                Remaining Estimate - 48h
                48h
                Logged:
                Time Spent - Not Specified
                Not Specified