Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

bug: preserve reference values from tied-hash values()

オープン
#1,554 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
68/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
java, perl
領域
compilers

調査の方向性

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 の本文から書いたものです。

説明

area:backend area:runtime bug

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::MultiKeyInsertOrderHash 0.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
    FETCH results from values %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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

fglock/PerlOnJava のほかの issue

fglock/PerlOnJava の issue をすべて見る

似ている issue

Perl の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。