Port Const::XS read-only variable API
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 35/100
Direção de pesquisa
Start by reading PerlOnJava's existing read-only support and the Const::XS 1.04 interface and XS source; validate the documented behavior with system Perl first. Add focused project-owned tests for the exports and scalar, array, hash, nested-reference, and mutation cases, then run them on both JVM and interpreter backends alongside the upstream tests. Done means the Claude-Agent-Code-Review load test passes through the stated dependency chain and any unsupported Perl semantics are documented and tested.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Goal
Provide a PerlOnJava implementation of Const::XS so CPAN distributions that depend on it can load and use its read-only variable API without a native XS shared library.
Evidence
The archived CPAN run 20261117-153921-75160 reports Claude::Agent::Code::Review 0.03 failing its first load test. The module loads Claude::Agent 0.15, which imports Const::XS from Claude::Agent::Hook and Claude::Agent::Permission. PerlOnJava installs Const::XS 1.04's .pm file, but that file calls XSLoader::load; the .xs implementation is not built. The resulting error is Can't load loadable object for module Const::XS: no Java XS implementation available.
The same archived run's system-Perl oracle passed the full Claude::Agent::Code::Review suite: 87 tests passed; author-only tests were skipped. PerlOnJava's run used Perl 5.044001 and failed at t/00-load.t before the remaining tests could run. The distribution's XS source defines the native operations; this is a missing PerlOnJava implementation, not a missing OS library prerequisite.
MetaCPAN's reverse-dependency endpoint returned 5 unique released distributions whose metadata requires Const::XS at runtime. All 5 have release dates within the last five years: Claude-Agent, Rope, MooX-Keyword-Readonly, MooX-Readonly-Attribute, and Eliza-Chatbot.
Porting scope
Implement the Const::XS 1.04 interface in PerlOnJava, including exports and the behavior of const, make_readonly, make_readonly_ref, unmake_readonly, and is_readonly. Preserve Perl behavior for scalar, array, and hash variables, including deep read-only behavior for nested references, and error behavior on attempted mutation. Reuse the runtime's read-only support where it matches Perl semantics; identify and fill gaps needed by this API rather than silently treating the XS load as successful while leaving calls unsupported.
Acceptance criteria
use Const::XSand the documented exports work on both JVM and interpreter backends without requiring XS compilation.- Add project-owned focused regression tests for the public operations and important nested/reference cases; validate expected behavior with system Perl first.
- Run the relevant upstream
Const-XStests under system Perl and both PerlOnJava backends, and makeClaude::Agent::Code::Review's load test pass with the exact dependency chain from the archived run. - Document any Perl semantics that cannot be represented and keep them explicit in tests or module compatibility notes.
References
- CPAN distribution: Const-XS 1.04
- Related failing distribution: Claude-Agent-Code-Review 0.03
- Run identifier:
20261117-153921-75160
- Linguagem predominante
- Perl
- Estrelas
- 67
- Forks
- 8
- Merge médio
- 5h 12min
- PRs com merge (30d)
- 131
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:cpan-port bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
fglock/PerlOnJava#2153 ·
Mantenedores costumam responder em até 1 dia
-
area:cpan-port area:parser bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
fglock/PerlOnJava#2137 ·
Mantenedores costumam responder em até 1 dia
-
area:backend area:cpan-port area:runtime bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
fglock/PerlOnJava#2071 ·
Mantenedores costumam responder em até 1 dia
-
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
-
area:cpan-port bug
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 62/100
fglock/PerlOnJava#2157 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de fglock/PerlOnJava
Issues semelhantes
-
Dev-output directory preparation accepts file-valued lib/include paths and fails on dangling linksAbertateam-cli
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 93/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 73/100
inverse-inc/packetfence#9728 ·
Mantenedores costumam responder em até 1 dia
-
fix(char-create): show the real reason a character is refusedTalvez já em andamento @baphomello assumiu há 1 dia. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
Mantenedores costumam responder em até 1 dia