Support CPAN modules requiring Object::Pad 0.800+

Ouverte
#2,112 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

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
Type d'issue
Fonctionnalité
Clarté
Clairement spécifiée
Activité
Active
Stack technique
perl
Domaine
compilers

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

area:cpan-port area:parser blocked:ownership enhancement

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.03 test 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

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de fglock/PerlOnJava

Toutes les issues de fglock/PerlOnJava

Issues similaires

Plus d'issues Perl

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.