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

Tokenize with regex grouping has a small bug

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.16.1, 2.15.5, 2.17.0
    • camel-core
    • None
    • 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

            davsclaus Claus Ibsen
            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