Export fieldhash from Hash::Util
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
Start with PerlOnJava’s bundled Hash::Util and its Hash::Util::FieldHash implementation; the issue identifies these APIs as the affected code. Run the reproducer on the JVM and interpreter backends, then check the project’s fieldhash tests and the Hash-ExtendedKeys 1.01 suite. Done means export succeeds, scalar keys work alongside reference keys, and the requested suites pass on both backends and system Perl.
由索引模型根據 Issue 內容生成。
描述
Summary
PerlOnJava's bundled Hash::Util omits the core fieldhash export, so CPAN module Hash::ExtendedKeys cannot load. After restoring the export, its tests also expose that the bundled fieldhash tie rejects ordinary scalar keys; core Perl treats those as regular hash entries.
Reproducer
use Hash::Util qw(fieldhash);
fieldhash my %fields;
$fields{plain_key} = 'value';
Expected: the import succeeds; ordinary scalar keys behave like normal hash entries, and reference keys retain identity-based fieldhash behavior.
PerlOnJava JVM and interpreter: before the export fix, compilation stops with "fieldhash" is not exported by the Hash::Util module. With the export restored but before scalar-key support, Hash-ExtendedKeys tests fail with Hash::Util::FieldHash keys must be references.
CPAN evidence
- Distribution:
Hash-ExtendedKeys1.01 - CPAN random tester run:
20261027-085020-3852 - Original failing test:
t/00-load.t; import aborts before the suite proceeds - System Perl 5.42.2: complete unchanged upstream suite passes (7 files, 24 tests)
- PerlOnJava Perl 5.044001: import failure reproduced on both JVM and interpreter backends; additional fieldhash behavior gap exposed on JVM
The failure was observed on macOS 26. The affected APIs are implemented by PerlOnJava's bundled modules. This is distinct from #1379, which fixed Hash::Util::FieldHash's :all export tag.
Acceptance
- Export
fieldhashfromHash::Utilwith behavior compatible with core Perl'sHash::Util::FieldHash. - Preserve ordinary scalar-key operations alongside reference-key fieldhash behavior.
- Add project-owned coverage validated on system Perl and both PerlOnJava backends.
- Confirm
Hash-ExtendedKeys1.01 loads and its unchanged suite passes.
- 主要語言
- Perl
- 星號
- 65
- 分支
- 8
- 平均合併
- 5 小時 49 分鐘
- 30 天內合併 PR
- 177
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
fglock/PerlOnJava 的其他 Issue
-
area:runtime documentation enhancement
難度 2/5 1-3 小時 新手友好度 72/100
fglock/PerlOnJava#1579 ·
維護者通常 1 天內回覆
-
Autovivify undefined hash reference in list assignment可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉area:runtime bug
難度 4/5 1-2 天 新手友好度 55/100
fglock/PerlOnJava#1958 · 1 則留言 ·
維護者通常 1 天內回覆
-
area:io bug
難度 4/5 3-5 天 新手友好度 56/100
fglock/PerlOnJava#1957 · 2 則留言 ·
維護者通常 1 天內回覆
-
area:cpan-port enhancement
難度 5/5 一週以上 新手友好度 25/100
fglock/PerlOnJava#1955 ·
維護者通常 1 天內回覆
-
area:runtime bug
難度 4/5 3-5 天 新手友好度 22/100
fglock/PerlOnJava#1951 ·
維護者通常 1 天內回覆
查看 fglock/PerlOnJava 的全部 Issue
相似的 Issue
-
wave-followup
難度 2/5 1-3 小時 新手友好度 74/100
-
documentation
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
virtualmin/virtualmin-gpl#1322 ·
-
`singletitle`/`uniquetitle`/`uniquework` only ignore entries whose `options` field contains the literal token `skipbib`; `skipbib=true` and `dataonly` still count可能已有人在做 @plk 於 2 天前認領。 未關閉Bug fixedindev
難度 2/5 1-3 小時 新手友好度 72/100
-
easy first-contributor first-contributors good first issue help wanted perl shell up-for-grabs
難度 1/5 1 小時以內 新手友好度 88/100
fork-commit-merge/fork-commit-merge#8461 ·
維護者通常 1 天內回覆