Port Const::XS read-only variable API
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 35/100
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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
- Langage dominant
- Perl
- Étoiles
- 67
- Forks
- 8
- Merge moyen
- 5 h 12 min
- PR mergées (30 j)
- 131
Préparer son environnement
- Fournit un Dockerfile ou un fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de fglock/PerlOnJava
-
area:cpan-port bug
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
fglock/PerlOnJava#2153 ·
Les mainteneurs répondent en général sous 1 jour
-
area:cpan-port area:parser bug
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
fglock/PerlOnJava#2137 ·
Les mainteneurs répondent en général sous 1 jour
-
area:backend area:cpan-port area:runtime bug
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
fglock/PerlOnJava#2071 ·
Les mainteneurs répondent en général sous 1 jour
-
area:runtime documentation enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
fglock/PerlOnJava#1579 ·
Les mainteneurs répondent en général sous 1 jour
-
area:cpan-port bug
Difficulté 3/5 1-2 jours Accessibilité débutants 62/100
fglock/PerlOnJava#2157 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de fglock/PerlOnJava
Issues similaires
-
Dev-output directory preparation accepts file-valued lib/include paths and fails on dangling linksOuverteteam-cli
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
Les mainteneurs répondent en général sous 2 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 93/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 73/100
inverse-inc/packetfence#9728 ·
Les mainteneurs répondent en général sous 1 jour
-
fix(char-create): show the real reason a character is refusedPeut-être pris @baphomello l’a pris il y a 1 jour. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
Les mainteneurs répondent en général sous 1 jour