Repository navigation
fix(bean): 支持链式与 fluent 访问器复制 - #372
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
当 Bean 使用返回自身的链式 setter,或
name()/name(value)形式的 fluent 访问器时,FastBeanCopier会遗漏属性。本次通过独立的 BeanUtils 内省配置补充公开实例方法配对,复用现有代码生成、类型转换和缓存。扩展属性按 getter 返回类型精确匹配 setter 参数,消除重载选择对反射枚举顺序的依赖,并排除静态方法和桥接方法。已有标准 JavaBean 属性优先,属性仍需同时可读、可写。模块 README 已同步支持规则。
验证复用已完成的模块编译与 bean 包测试:34 项通过,0 失败、0 错误、0 跳过。新增 8 项回归测试覆盖链式/fluent 双向复制、继承泛型、属性忽略、标准访问器优先级、重载选择、静态方法排除及全局 BeanUtils 配置隔离。