Repository navigation
Open
Labels
area:cpan-portCPAN compatibility ports and providersarea:parserParsing compilation AST and eval behaviorblocked:ownershipBlocked pending Perl ownership/refcount/DESTROY work (issue #2043).bugSomething isn't working
Description
Summary
Port Data::Alias so CPAN distributions that rely on its aliasing API can run on PerlOnJava. Data::Reuse is one confirmed consumer. Data::Alias 1.30 contains XS code (Alias.xs) and its Perl module bootstraps that extension; the current CPAN MakeMaker path installs only the .pm file and cannot compile the XS component.
Reproduction and evidence
- Distribution: Data-Alias 1.30, module
Data::Alias. - In CPAN run
20261104-151051-20617, the PerlOnJava test run fails to loadData::Aliasacross 31 of 33 test programs withType of arg 1 to pop must be array (not constant item)at thepop our @ISAstatement inData/Alias.pmline 18. This is the first observed blocker; the package also needs an implementation for its XS-provided aliasing behavior. - On system Perl 5.42.2 (macOS), the same distribution compiled its XS extension and passed all available tests: 637 tests across 33 files. Two optional test files were skipped because
Devel::CallParserandTest::Pod::Coveragewere unavailable. Data::Reuse0.13 requiresData::Alias1.16+. In CPAN run20261106-154847-45334, its four test files all fail during dependency loading at the samepop our @ISAdiagnostic. The system-Perl oracle builtData::Aliasand passed all 127Data::Reusetests.- Targeted MetaCPAN reverse-dependency lookup: 14 unique released distributions have a runtime dependency on
Data::Alias; 2 are recent. Examples:Data::Reuse,Alias-Any,PerlX-Window, andXML-Dataset.
Scope
Implement the Data::Alias surface needed by real consumers, including alias, copy, and deref, with Perl-compatible parsing and runtime semantics. The upstream distribution documents context-transparent operations and aliasing of variables, elements, arguments, and aggregates. Do not treat successful parsing alone as completion: exercise the upstream suite and Data::Reuse against the implementation.
Acceptance criteria
use Data::Aliasloads without native XS and provides the supported API through PerlOnJava implementation code.- Focused tests cover
pop our @ISAparsing and the documented API semantics, validated against system Perl. - Relevant upstream
Data::Aliastests and theData::Reuse0.13 suite pass on PerlOnJava; test on both JVM and interpreter backends where supported. - Document any unsupported API cases and keep the tested distribution versions and results in the compatibility evidence.
Evidence references
- Data::Alias source
- Data::Reuse 0.13
- CPAN run IDs:
20261104-151051-20617(Data::Alias) and20261106-154847-45334(Data::Reuse).
Metadata
Metadata
Assignees
Labels
area:cpan-portCPAN compatibility ports and providersarea:parserParsing compilation AST and eval behaviorblocked:ownershipBlocked pending Perl ownership/refcount/DESTROY work (issue #2043).bugSomething isn't working
Activity
fglock commentedon Nov 12, 2026
Data::Alias implementation is deferred because its aliasing semantics depend on the lifetime and owner-accounting work tracked in #2043. The active implementation checkpoint is associated with PR #1938; its checkpoint notes that the lifecycle conversion and sweep removal are still in progress.
The related Safe, strict-module-loading, and tainted-eval fixes are being delivered separately in PR #2044. That PR does not claim to resolve #1990.
fglock commentedon Nov 12, 2026
Follow-up after merge: PR #2044 merged as
6a3b11780f9456b0b40dbc773942612030a72eea, resolving the Safe shared-sub, strict@ISA, and tainted eval issues tracked separately by #2033, #2011, and #1981. Data::Alias itself remains deferred: its alias semantics depend on lifetime and owner-accounting work in #2043, tracked in PR #1938. This issue remains open until that work is ready and the Data::Alias acceptance criteria are met.fglock commentedon Nov 15, 2026
CPAN follow-up:
Params-Validate-Aggregated0.05 (run20261115-091204-23477) also exercises the existingData::Aliasload failure. PerlOnJava failst/00-load.t,t/alias.t,t/pod-coverage.t,t/run.t,t/spec.t, andt/with.t; each traces toData::Alias1.30 line 18,pop our @ISA, reported asType of arg 1 to pop must be array (not constant item).Data::Alias's failed import then causes the later undefinedpv_disaggerrors.The archived system-Perl oracle passes all available
Params::Validate::Aggregatedtests (38 tests) andData::Aliastests (637 tests; two optional files skipped). A focused import reproduces the diagnostic on both PerlOnJava JVM and interpreter backends. The parser's pop/shift argument validation does not unwrapourdeclarations before checking whether the operand is an array. Targeted reverse-dependency metadata reports 14 unique runtime dependants ofData::Alias, 2 recent (includingData::Reuse,Alias-Any, andXML-Dataset).This run provides additional post-fix verification coverage for #1990: the
Params::Validate::Aggregated0.05 suite depends on successfulData::Aliasloading and exercises the same parser behavior.fglock commentedon Nov 21, 2026
CPAN follow-up:
Perl-Critic-PolicyBundle-SNEZ0.03, selected by thePerl::Critic::Policy::CodeLayout::RequireBreakBeforeOperatortarget in run20261120-195805-13340, adds another reproducible consumer of thepop our @ISAparser failure tracked here.In the PerlOnJava run,
t/00-compile.tfails while requiringPerl::Critic::Policy::ControlStructures::ProhibitMultipleSubscripts. Loading its requiredData::Alias1.30 dependency reportsType of arg 1 to pop must be array (not constant item)atpop our @ISAinData::Alias.pm. This prevents the policy bundle's test run from completing. The archived system-Perl oracle passes both bundle test files (13 tests total); theData::Aliasdependency tests also pass under system Perl.Focused reproducer:
System Perl 5.42.2 prints
ok. PerlOnJava rejects it with the same diagnostic on both the JVM and interpreter backends. The interpreter result was checked in this follow-up; previous evidence on this issue also records both backends.The issue's existing targeted MetaCPAN reverse-dependency evidence remains 14 unique released distributions with a required runtime dependency on
Data::Alias, 2 recent within five years. Representative dependants includeData::Reuse,Alias-Any,PerlX-Window, andXML-Dataset.This is additional post-fix verification coverage for the parser behavior and
Data::Aliasloading acceptance criteria already tracked by this issue. No separate issue is needed.