Port autovivification pragma to PerlOnJava
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
- 35/100
Línea de trabajo
Start by reading the autovivification 0.18 import/unimport documentation and the PerlOnJava compiler/runtime paths that handle lexical pragmas on both backends. Then review issues #1958 and #1980 for related core behavior. Done means both backends load the pragma without XS errors, focused tests cover its categories and nested scopes, and Data-Session 1.18's upstream tests pass.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
Port the CPAN autovivification pragma to PerlOnJava so modules that declare use autovivification or no autovivification can load and receive the pragma's documented lexical behavior without relying on XS.
Evidence
The PerlOnJava CPAN run 20261117-153921-75160 tested Data-Session 1.18. Its system-Perl oracle passed all 3 test programs (52 tests). The PerlOnJava run failed all 3 programs before any subtests ran because the dependency autovivification 0.18 calls XSLoader::load; PerlOnJava reported that no Java XS implementation is available. Data::Session and its tests use the pragma lexically, including no autovivification in library files.
autovivification contains XS/C code and cannot currently be loaded by PerlOnJava. A targeted released dependency lookup found 39 unique distributions with a required runtime dependency, 20 of them released in the last five years. Representative dependants include JSON-Schema-Modern, App-Netdisco, OpenAPI-Modern, Spreadsheet-Edit, Test-JSON-Schema-Acceptance, and Mojolicious-Plugin-OpenAPI-Modern.
This request is for a PerlOnJava implementation of the pragma's behavior, not support for compiling arbitrary XS modules.
Porting scope
Implement a Java-backed replacement compatible with autovivification 0.18's documented import/unimport interface and lexical scope. Cover the categories fetch, exists, delete, and store, plus warn and strict modes and their category arguments. Preserve the module's documented default categories and behavior when nested scopes enable or disable the pragma. Determine the right compiler/runtime hook for this lexical behavior and make it work consistently on both JVM and interpreter backends.
The implementation should allow the upstream pure-Perl module entry point to load without attempting to load the XS object when PerlOnJava provides the implementation. Keep standard Perl behavior unchanged.
Acceptance criteria
use autovivificationandno autovivificationload on both PerlOnJava backends without XS load errors.- Focused tests cover lexical enable/disable scope and each documented behavior category, including warning/strict modes.
- The tests pass under system Perl and both PerlOnJava backends.
- Data-Session 1.18's upstream tests pass under PerlOnJava with the pragma available.
- Add permanent project-owned regression coverage for the implemented pragma behavior.
Related issues
Issues #1958 and #1980 address specific core autovivification behaviors. They do not provide the lexical pragma or its category controls.
- Lenguaje dominante
- Perl
- Estrellas
- 67
- Forks
- 8
- Merge medio
- 5 h 12 min
- PR fusionados (30 d)
- 131
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de fglock/PerlOnJava
-
area:cpan-port bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
fglock/PerlOnJava#2153 ·
Los mantenedores suelen responder en 1 día
-
area:cpan-port area:parser bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
fglock/PerlOnJava#2137 ·
Los mantenedores suelen responder en 1 día
-
area:backend area:cpan-port area:runtime bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
fglock/PerlOnJava#2071 ·
Los mantenedores suelen responder en 1 día
-
area:runtime documentation enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
fglock/PerlOnJava#1579 ·
Los mantenedores suelen responder en 1 día
-
area:cpan-port bug
Dificultad 3/5 1-2 días Aptitud para principiantes 62/100
fglock/PerlOnJava#2157 ·
Los mantenedores suelen responder en 1 día
Todos los issues de fglock/PerlOnJava
Issues similares
-
Dev-output directory preparation accepts file-valued lib/include paths and fails on dangling linksAbiertoteam-cli
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 93/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
inverse-inc/packetfence#9728 ·
Los mantenedores suelen responder en 1 día
-
fix(char-create): show the real reason a character is refusedPosiblemente ocupada @baphomello la tomó hace 1 día. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día