Support CPAN modules requiring Object::Pad 0.800+
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
- 25/100
Piste de recherche
Start with the bundled Object::Pad compatibility pragma and native class compiler, then review Device::Chip 0.27's Object::Pad usage and the related architecture issue #1586. Identify the syntax and APIs needed for that consumer and define the supported version boundary with clear failures for unsupported APIs. Add project-owned regression coverage, validate behavior against system Perl and both PerlOnJava backends, and run the unchanged Device-Chip-ADT7470-0.03 suite with its fake adapter.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Summary
PerlOnJava's bundled Object::Pad compatibility pragma advertises version 0.66 and implements a documented subset of Object::Pad syntax. Current CPAN code can require Object::Pad 0.800 or newer, but installing current Object::Pad on PerlOnJava cannot supply that version: Object::Pad 0.825 depends on XS::Parse::Keyword and XS::Parse::Sublike, which require native XS support that PerlOnJava does not provide. The resulting test failure is a compatibility gap between the bundled syntax implementation and modern CPAN prerequisites.
Evidence: Device::Chip::ADT7470
CPAN random run 20261118-104825-43075 tested Device-Chip-ADT7470-0.03. The test harness built dependency Device-Chip-0.27; its source declares use Object::Pad 0.800. The dependency build found bundled Object::Pad 0.66, then attempted Object::Pad 0.825. Its prerequisite builds could not load XS::Parse::Keyword (no Java XS implementation available), and the PerlOnJava XS fallback could not install a usable Object::Pad implementation.
The target's t/00use.t then failed because it received Object::Pad 0.66 where 0.800 was required. t/01config.t and t/02interact.t stopped at the same version requirement; t/99pod.t passed. Device::Chip::ADT7470 itself is pure Perl, and these adapter tests use a test adapter rather than physical hardware. The archived run records the JVM test path; interpreter and system-Perl outcomes were not established. The host's system Perl did not have Object::Pad installed during investigation, so no standard-Perl comparison is claimed.
This is consistent with the checked-in compatibility layer's declared scope: it reports version 0.66, supports selected native class/field/method syntax, and does not provide Object::Pad MOP or extension APIs. The immediate diagnostic is a version guard, not evidence that the driver module's own code is defective.
Ecosystem scope
A targeted MetaCPAN reverse-dependency lookup, filtered to unique released distributions with a runtime requires dependency on Object::Pad, found 138 distributions, of which 134 were released in the five years through 2026-11-19. Examples include OpenTelemetry, OpenTelemetry-SDK, DBIx-Fast, Getopt-Pad, and Device-Serial-SLuRM. These counts support tracking compatibility for modern consumers; they do not imply that all consumers need MOP or other unsupported APIs.
Requested work
Determine and implement a compatibility path for CPAN modules that declare Object::Pad >= 0.800 and use syntax/features that PerlOnJava can implement natively. Keep the version advertised by the bundled shim honest: do not satisfy the version check unless the required behavior is supported. Identify the syntax/API subset needed by representative consumers, starting with Device::Chip 0.27, and provide clear diagnostics when a required extension still needs XS or an unsupported MOP API.
Related architecture work: #1586 investigates general native XS and Perl C API compatibility. This issue is the bounded Object::Pad compatibility outcome; it does not assume that general XS support is a prerequisite if the needed syntax can be implemented in PerlOnJava's compiler.
Acceptance criteria
- Document the supported Object::Pad version and feature boundary for the chosen implementation.
- Add project-owned regression coverage for the new supported behavior and for a clear failure when a consumer requires an unsupported Object::Pad API.
- Validate new Perl-level behavior against system Perl first, then verify both PerlOnJava backends.
- Run the unchanged
Device-Chip-ADT7470-0.03test suite with its fake adapter and record the system Perl, JVM, and interpreter results. - Preserve the existing unsupported-XS diagnostics for features that cannot be implemented by the native class compiler.
- 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