Support CPAN modules requiring Object::Pad 0.800+

Abierto
#2,112 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
perl
Área
compilers

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
Perl
Estrellas
67
Forks
8
Merge medio
5 h 12 min
PR fusionados (30 d)
131

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de fglock/PerlOnJava

Todos los issues de fglock/PerlOnJava

Issues similares

Más issues de Perl

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.