Repository navigation
fix(bean): 保留已匹配泛型属性的复制语义 - #391
Merged
zhou-hao merged 2 commits intoNov 29, 2026
Merged
Conversation
按源和目标完整类型决定是否绑定泛型,兼容属性沿用引用或clone。 沿声明类追踪类型变量,保留继承绑定和当前转换上下文。 补充构造器、只读状态、循环引用、不同泛型参数及有界变量回归。
This was referenced Nov 29, 2026
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.
已发布的 hsweb 5.0.3 在复制相同声明泛型属性时会强制重建,导致只有带参构造器的属性报错、只读状态丢失,或原本可浅复制的循环引用递归到 StackOverflowError。
基于 5.0.3 已合并的 #390,只修改公共复制策略、测试和长期契约文档,版本及依赖保持。同一修复同步至 5.0.4 #389。
两条 hsweb 维护线各 124 项 FastBeanCopier 测试通过,零失败/错误/跳过,各自最终提交的 build/CLA 成功。两线候选 Jar 各通过五个复制触发和 RPC/命令/既有 Map 泛型 API 探针。最新配套 Core 27、2.20 common 127 项通过,含 41 项真实 TCP RSocket 命令;Supports 75 项及未变的 hsweb 源码复用此前证据,不累加重复运行。SDK 与平台按各自依赖基线记录。
先合入并发布本 PR 与 #389、核对实际新 Jar,再发布 2.20/2.21 共用的 Core #135;2.20 保持 hsweb 5.0.3。配套验证的数组 codec 延迟注册修复位于 Core 公共 owner,不在 hsweb 添加调用方特判。
仅恢复兼容属性既有的浅复制语义,不承诺任意循环对象图深转换。private record 动态 copier 访问限制和独立 gossip 泄漏保留。未合并、发布 Maven、替换共享缓存或部署;未做全模块和生产负载测试。