[ 
https://issues.apache.org/jira/browse/CAMEL-27846?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen updated CAMEL-27846:
--------------------------------
    Description: 
Found while improving the option descriptions of camel-mapstruct for 
CAMEL-23832 (commit 
https://github.com/apache/camel/commit/387f7ff0b6ea13b1acc5d8ca1e8ae0ec8dbee737,
 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_

  was:
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_


> 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
>            Priority: Minor
>             Fix For: 4.25.0
>
>
> Found while improving the option descriptions of camel-mapstruct for 
> CAMEL-23832 (commit 
> https://github.com/apache/camel/commit/387f7ff0b6ea13b1acc5d8ca1e8ae0ec8dbee737,
>  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)

Reply via email to