Claus Ibsen created CAMEL-27846:
-----------------------------------
Summary: camel-mapstruct: mapperPackageName entries are not
trimmed, and a custom mapStructConverter ignores mapperPackageName
Key: CAMEL-27846
URL: https://issues.apache.org/jira/browse/CAMEL-27846
Project: Camel
Issue Type: Bug
Components: camel-mapstruct
Reporter: Claus Ibsen
Fix For: 4.25.0
Found while improving the option descriptions of camel-mapstruct for
CAMEL-23832 (pull request https://github.com/apache/camel/pull/31143).
These are separate problems of the component; the descriptions change only
documents the current behavior.
h4. 1. mapperPackageName is not trimmed
{{DefaultMapStructFinder.doInit}} splits on "," without trimming; with
"com.foo, com.bar" the second package becomes " com/bar" and is never scanned,
without a warning.
Proposed change: trim each name.
h4. 2. A custom finder does not get mapperPackageName
{{MapstructComponent.doStart}} passes mapperPackageName only to the default
finder it creates; with a set or autowired mapStructConverter the option is
ignored.
Proposed change: pass the value on when the custom finder has none.
_Claude Code on behalf of davsclaus_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)