bug: preserve reference values from tied-hash values()
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
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時間 55分
- マージ済み PR(30日)
- 169
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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 1週間以上 初心者へのやさしさ 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
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
conan-io/conan-center-index#31065 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
openfoodfacts/openfoodfacts-server#14749 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信