Export fieldhash from Hash::Util
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 45/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Perl
- Stelle
- 65
- Fork
- 8
- Merge medio
- 6h 28m
- PR unite (30g)
- 181
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di fglock/PerlOnJava
-
area:runtime documentation enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
fglock/PerlOnJava#1579 ·
I maintainer di solito rispondono entro 1 giorno
-
area:performance enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
fglock/PerlOnJava#1911 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
fglock/PerlOnJava#1885 ·
I maintainer di solito rispondono entro 1 giorno
-
area:cpan-port enhancement help wanted
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
fglock/PerlOnJava#1880 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
area:performance enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
fglock/PerlOnJava#1863 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di fglock/PerlOnJava
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
-
Type: Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
inverse-inc/packetfence#9605 ·
I maintainer di solito rispondono entro 10 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100