Export fieldhash from Hash::Util
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 45/100
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- Perl
- Estrelas
- 65
- Forks
- 8
- Merge médio
- 6h 28min
- PRs com merge (30d)
- 184
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de fglock/PerlOnJava
-
area:runtime documentation enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
fglock/PerlOnJava#1579 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 35/100
fglock/PerlOnJava#1885 ·
Mantenedores costumam responder em até 1 dia
-
area:performance enhancement
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 20/100
fglock/PerlOnJava#1863 · 3 comentários ·
Mantenedores costumam responder em até 1 dia
-
area:memory area:performance area:runtime bug
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 52/100
fglock/PerlOnJava#1860 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
Mojolicious controller and WebSocket lifetimes regress with #1642 integrationTalvez já em andamento @fglock assumiu há 7 dias. Abertaarea:backend area:memory area:runtime bug
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 12/100
fglock/PerlOnJava#1794 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de fglock/PerlOnJava
Issues semelhantes
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 90/100
beyondgrep/ack3#413 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 64/100
-
Type: Bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
inverse-inc/packetfence#9605 ·
Mantenedores costumam responder em até 10 dias