Croway opened a new pull request, #26307:
URL: https://github.com/apache/camel/pull/26307

   The default-value patterns in `JoorCompiler` (`headerAs` / 
`exchangePropertyAs` with a default) used a greedy `(.+)` for the default 
value, so two calls on one line were rewritten across each other:
   
   ```
   'order-' + headerAs('amount', Integer) + '-' + headerAs('vip', Boolean)
   ```
   
   became `headerAs(message, "amount",  Integer) + "-" + headerAs(message, 
"vip", Boolean.class)` and failed with `cannot find symbol: variable Integer`. 
The `.class` dot was unescaped and the quote class accepted a literal `|`.
   
   The default value now matches `((?:[^()]|\([^()]*\))+?)` (no parentheses 
except one balanced level, so it cannot reach the next call; a plain lazy group 
still spanned mixed two- and three-argument calls), the dot is escaped and the 
quote class is `['"]`. Three new tests fail on the old patterns and pass now; 
all 57 module tests pass.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   
   _Claude Code on behalf of Croway_
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to