yibiner
yibiner
已修复Review 问题。 https://github.com/alibaba/fastjson2/pull/7641/changes/d425e5b5a3fdaa18e8eeffabae2f4c2376310b03 问题: 非 List 集合(如 HashSet)开启 ReferenceDetection 时,元素内共享引用会输出不可解析的 $ref(如 "$.codes"),反序列化后字段为 null;write() 文本路径也有同样问题。 修复: 在 ObjectWriterImplCollection 的 writeJSONB() / write() 中,写每个元素前用 JSONWriter.saveReferences() / restoreReferences() 回滚 sibling 注册的 refs,强制内联共享对象;不关闭 ReferenceDetection,单元素循环引用仍可正常...
已根据 Code Review 更新修复方案: https://github.com/alibaba/fastjson2/pull/7641/commits/66bcc706d6336b418dc904e0ee46e11a5f73e338 1. 将测试拆分为文本 JSON 与 JSONB 两套对称用例,各 42 个。 2. 将引用处理从「元素级引用表回滚」改为「基于路径稳定性(unstableIndex)判断」: - Set 相关非循环共享引用改为内联; - 循环引用仍写 $ref,避免递归溢出。 3. 兼容性说明: - LinkedHashSet / TreeSet:共享引用由 $ref 改为内联,值保真,不再保证共享对象身份; -...
https://github.com/alibaba/fastjson2/pull/7641/commits/1a0107c661ff10a1f44949f1f11f5ccb953af86a 主要变更 **1. refRestores 语义强化,修复嵌套循环下的错误回填** - 由 IdentityHashMap 改为 IdentityHashMap,同时记录 [规范路径, 内联帧路径]。 popPath0 仅在「当前帧恰为登记的内联帧」(restore[1] == this.path)时才回填规范路径。此前嵌套循环中同一对象可能被更内层的帧提前 pop,导致规范路径被错误还原。 **2. 拆分 Path.setElement 与 unstableIndex 两个维度** - setElement:元素属于任意 Set(延迟解析可能改变哈希/顺序)。 unstableIndex:元素属于无序 Set,其索引路径不可作为 $ref。 内联判定改为...
关闭本 PR。 原始问题已在 [#7701](https://github.com/alibaba/fastjson2/pull/7701) 以不同方案修复。继续推进本 PR 会扩大改动范围、增加 Review 成本。 将关闭本 PR;其中仍独立存在的其他问题,后续拆分最小问题单独提修复。
This issue is bound to appear. In the code that reproduces the problem, the timed execution of the task is 4 seconds long, and when I submit the task, after...
#1012 修好了全新安装:Darwin && unix://* 统一改写成 /var/run/docker.sock,覆盖所有 macOS 引擎。但它「修复旧 .env」的正则只匹配 */.docker/run/docker.sock: if [[ "$(uname -s)" == Darwin && "${LOOPFORGE_DOCKER_SOCKET:-}" == */.docker/run/docker.sock ]] 实测三种路径: /Users/u/.docker/run/docker.sock → 会被修正(Docker Desktop) /Users/u/.colima/default/docker.sock → 保留坏值(colima) /Users/u/.orbstack/run/docker.sock...