Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

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

未关闭
#1,554 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
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 小时 42 分钟
30 天内合并 PR
182

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

fglock/PerlOnJava 的其他 Issue

查看 fglock/PerlOnJava 的全部 Issue

相似的 Issue

更多 Perl Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。