bug: preserve reference values from tied-hash values()
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Use the upstream CPAN test t/1_basic.t, especially test 8, as the behavioral reference, then locate the tied-hash values implementation and existing project regression tests. Add focused coverage for reference-valued FETCH results, validate it with system Perl, and confirm both JVM and interpreter backends pass while retaining the CPAN test as integration coverage.
由索引模型根据 Issue 内容生成。
描述
Summary
values %hash on a tied hash can return scalar iteration values instead of
the references returned by the tie object's FETCH method.
Evidence
- CPAN distribution:
Tie::MultiKeyInsertOrderHash0.1 (pure Perl). - Archived CPAN run:
20260928-091741-26386. - Upstream test:
t/1_basic.t, test 8,Values in right order test. - System Perl 5.42.2: 16/16 tests pass.
- PerlOnJava JVM backend: 15/16 tests pass; test 8 fails.
- PerlOnJava interpreter backend: the same 15/16 result and test-8 failure.
The distribution's tie class stores an array reference for each key. After
assigning repeated values to A and B, standard Perl makes
[values %hash] contain those array references. PerlOnJava instead reports
the first scalar value ('1') where the first array reference ([1, 3]) is
expected. keys %hash and list-context each %hash pass in the same test.
Expected behavior
For a tied hash, values %hash must preserve the actual values returned by
the tie interface, including references. It must not substitute the scalar
value paired with a key during tied iteration.
Acceptance criteria
- Add a project-owned focused regression that verifies reference-valued
FETCHresults fromvalues %tied_hash. - Validate the test with system Perl first.
- Verify JVM and interpreter backend success.
- Retain the existing CPAN test as integration coverage.
Duplicate check
No issue matched the distribution name or stable failing test. Closed #20 is
limited to a tied element access in void context, and open #1269 is a broad
core-suite tracker for repeated FETCH calls; neither covers this result
materialization error.
- 主要语言
- Perl
- 星标
- 64
- 派生
- 6
- 平均合并
- 4 小时 42 分钟
- 30 天内合并 PR
- 182
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
fglock/PerlOnJava 的其他 Issue
-
area:cpan-port area:unicode bug
难度 2/5 1-3 小时 新手友好度 88/100
fglock/PerlOnJava#1341 ·
维护者通常 1 天内回复
-
area:cpan-port area:regex area:unicode bug
难度 4/5 3-5 天 新手友好度 52/100
fglock/PerlOnJava#1556 ·
维护者通常 1 天内回复
-
area:cpan-port area:runtime bug
难度 3/5 1-2 天 新手友好度 55/100
fglock/PerlOnJava#1552 ·
维护者通常 1 天内回复
-
area:backend area:cpan-port bug
难度 4/5 3-5 天 新手友好度 48/100
fglock/PerlOnJava#1548 ·
维护者通常 1 天内回复
-
bug
难度 5/5 一周以上 新手友好度 35/100
fglock/PerlOnJava#1541 ·
维护者通常 1 天内回复
查看 fglock/PerlOnJava 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 2/5 1-3 小时 新手友好度 78/100
objectionary/eolang.sty#167 ·
-
难度 2/5 1-3 小时 新手友好度 86/100
-
1.severity: security
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 74/100
conan-io/conan-center-index#31065 · 1 条评论 ·
维护者通常 1 天内回复