Skip to content

Fix MapperFactoryBean constructor argument for AOT#1238

Merged
hazendaz merged 1 commit intomybatis:masterfrom
DragonFSKY:fix-aot-mapper-constructor-arg-master
May 9, 2026
Merged

Fix MapperFactoryBean constructor argument for AOT#1238
hazendaz merged 1 commit intomybatis:masterfrom
DragonFSKY:fix-aot-mapper-constructor-arg-master

Conversation

@DragonFSKY
Copy link
Copy Markdown
Contributor

Summary

  • Forward-port the Fix MapperFactoryBean constructor argument for AOT #1235 fix from 3.0.x to master.
  • Use the resolved mapper interface Class as the constructor argument when the configured MapperFactoryBean only exposes a Class-based constructor.
  • Preserve the existing String constructor argument for custom MapperFactoryBean implementations that accept String constructors.

Verification

  • ./mvnw -Dlicense.skip=true -Dformatter.skip=true -Dimpsort.skip=true -Dwhitespace.skip=true -Drewrite.skip=true -Dtest=MapperScannerConfigurerTest test

@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 90.316% (+0.07%) from 90.242% — DragonFSKY:fix-aot-mapper-constructor-arg-master into mybatis:master

@hazendaz hazendaz merged commit ae6e43a into mybatis:master May 9, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants