Date::Manip 7.00 fails to load under strict indirect-object syntax
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 56/100
調査の方向性
Start by reading the parser or compiler handling for indirect-object constructor calls under strict subs, using the reported new Date::Manip::Base expression in Date/Manip/Obj.pm line 137 as the reproduction. Add focused project-owned regression coverage and validate the case with standard Perl, then run it on both PerlOnJava backends. Done means the regression and the two named upstream test programs pass on both backends.
索引モデルが issue の本文から書いたものです。
説明
Summary
DateTime::Format::DateManip 0.04 cannot load under PerlOnJava when its runtime dependency Date::Manip 7.00 is on the Perl5 library path. The failure reproduces on both the JVM and interpreter backends, while the same unmodified upstream tests pass under system Perl.
The public error from Date::Manip is generic because its loader catches the backend import exception. Exposing that exception shows a strict-subs compilation error in Date::Manip::Obj at the indirect-object constructor call:
$base = new Date::Manip::Base;
PerlOnJava reports Bareword "Date::Manip::Base" not allowed while "strict subs" is in use. This points to a parser/compiler compatibility gap involving valid indirect-object syntax under strict subs.
Reproduction
CPAN random tester run: 20261111-090841-71684
- Target distribution:
DateTime-Format-DateManip0.04 - Required dependency:
Date-Manip7.00 - Failing upstream tests:
t/00load.tandt/01conversions.t - Archived result: 2/2 test programs fail because
Date::Manip::DM6fails to load.
With those versions available on PERL5LIB, the minimal public reproducer is:
use DateTime::Format::DateManip;
Expected: module load succeeds.
Actual on both PerlOnJava backends:
ERROR LOADING MODULE: Date::Manip::DM6
The underlying error, exposed by evaluating require Date::Manip::DM6; Date::Manip::DM6->import(), is:
Bareword "Date::Manip::Base" not allowed while "strict subs" is in use
at Date/Manip/Obj.pm line 137.
The failing call is compiled under use strict in Date::Manip::Obj. This is a dependency load failure, not an XS build or platform prerequisite failure; the archived run installed the module's Perl files and skipped its optional C source.
System Perl and backend comparison
The exact CPAN versions were installed into an isolated local library, without modifying either distribution:
- System Perl 5.34.1:
Date-Manip7.00 suite passed, 209 files / 4,533 tests;DateTime-Format-DateManip0.04 suite passed, 2 files / 7 tests. - PerlOnJava JVM backend: reproducer fails with the strict-subs error above.
- PerlOnJava interpreter backend: same failure and diagnostic.
Environment: macOS on aarch64, Java 24.0.2. The reproducing checkout was at 7925f28d12c0eea36deceb8f4ccfddeff67c4900; its launcher banner reported PerlOnJava v5.44.1 and build hash 37f90e72f.
Dependency evidence
MetaCPAN's Date-Manip dependent-distribution page lists 66 dependent CPAN releases. Four listed releases are dated within the three years before this report, including Mail-Milter-Authentication, Finance-Quote, Date-ManipX-Almanac, and Date-RangeParser-EN.
The project targeted reverse-dependency query could not verify the runtime-only unique dependant count because MetaCPAN's API connection failed TLS certificate verification after retries. The page count above is therefore distribution-level evidence, not a confirmed runtime-only count.
Expected behavior and acceptance
Date::Manip7.00 andDateTime::Format::DateManip0.04 load successfully on both PerlOnJava backends, matching system Perl.- Add focused project-owned regression coverage for the valid
new Date::Manip::Baseconstruct understrict subs, after validating the test with standard Perl. - The focused regression passes on both backends, and the target upstream tests pass on both backends.
Related issue check
No existing issue was found for Date::Manip::Obj, Date::Manip::Base, or this indirect-object strict-subs failure. Closed issue #1411 covers a distinct heredoc END parsing case; it does not cover this constructor syntax.
- 主要言語
- Perl
- スター
- 67
- フォーク
- 8
- 平均マージ
- 6時間 14分
- マージ済み PR(30日)
- 143
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
fglock/PerlOnJava のほかの issue
-
area:io area:warnings bug
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
fglock/PerlOnJava#2024 ·
メンテナーはふだん 1 日以内に返信
-
area:runtime documentation enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
fglock/PerlOnJava#1579 ·
メンテナーはふだん 1 日以内に返信
-
area:backend area:io area:runtime bug
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
fglock/PerlOnJava#2023 ·
メンテナーはふだん 1 日以内に返信
-
area:runtime bug
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
fglock/PerlOnJava#2022 ·
メンテナーはふだん 1 日以内に返信
-
area:backend area:cpan-port area:parser area:runtime bug
難易度 4/5 3〜5日 初心者へのやさしさ 54/100
fglock/PerlOnJava#2021 ·
メンテナーはふだん 1 日以内に返信
fglock/PerlOnJava の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 94/100
VEuPathDB/ApiCommonModel#260 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
ibmdb/perl_DBD-DB2#21 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
`config --theme` can't find theme files when the `~/Documents/Themes` directory is a symbolic linkオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
1.severity: security
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信