False CORE::try/catch ambiguity warnings break Try::Tiny consumers
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start with the minimal use DateTime::Format::Strptime; reproducer and compare warning behavior across the JVM and interpreter backends against Perl 5.42.2. Trace where ambiguous CORE::try() and CORE::catch() warnings are emitted, then verify that the CPAN consumer loads without warnings and that the affected Test::NoWarnings checks pass.
索引モデルが issue の本文から書いたものです。
説明
Summary
PerlOnJava emits false Ambiguous call resolved as CORE::try() and CORE::catch() warnings when compiling modules that import try/catch from Try::Tiny. These warnings make otherwise passing CPAN tests fail under Test::NoWarnings.
Reproduction
The issue was observed while testing TBX::Min version 0.08 in CPAN random run 20260921-124328-13959 at PerlOnJava commit d8e4fd417.
The distribution's standard Perl suite passes all 162 tests. Under PerlOnJava, both the JVM backend and interpreter backend reproduce the warnings with the dependency set used by the run. A minimal load reproducer is:
use DateTime::Format::Strptime;
The warnings include:
Ambiguous call resolved as CORE::try(), qualify as such or use &
Ambiguous call resolved as CORE::catch(), qualify as such or use &
They originate in Try::Tiny consumers including DateTime::Format::Strptime, Module::Implementation, DateTime, and DateTime::TimeZone. PerlOnJava reports these warnings even though the code imports and calls the Try::Tiny functions; standard Perl does not report them for the same suite.
CPAN impact
TBX::Min reports 8 failed test programs out of 10 and 8 failed subtests out of 162. In each affected test program, the only failure is the Test::NoWarnings check; functional assertions pass.
The distribution contains no XS or native code, so no native reverse-dependency analysis is applicable.
Expected behavior
PerlOnJava should match standard Perl warning behavior: importing try and catch from Try::Tiny should not produce false ambiguity warnings merely because Perl has a CORE::try construct.
Environment
- PerlOnJava backends: JVM and interpreter
- Standard Perl oracle: Perl 5.42.2 on macOS
- Affected dependency:
DateTime::Format::Strptime1.80 - CPAN distribution:
TBX::Min0.08
- 主要言語
- Perl
- スター
- 64
- フォーク
- 7
- 平均マージ
- 4時間 29分
- マージ済み PR(30日)
- 176
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
fglock/PerlOnJava のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
fglock/PerlOnJava#1579 ·
メンテナーはふだん 1 日以内に返信
-
area:cpan-port area:unicode bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
fglock/PerlOnJava#1341 ·
メンテナーはふだん 1 日以内に返信
-
area:platform area:runtime bug
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
fglock/PerlOnJava#1635 ·
メンテナーはふだん 1 日以内に返信
-
area:cpan-port area:runtime bug
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
fglock/PerlOnJava#1634 ·
メンテナーはふだん 1 日以内に返信
-
area:cpan-port bug
難易度 3/5 1〜2日 初心者へのやさしさ 72/100
fglock/PerlOnJava#1633 ·
メンテナーはふだん 1 日以内に返信
fglock/PerlOnJava の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
convos-chat/convos#977 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
inverse-inc/packetfence#9387 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
linux-test-project/lcov#552 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
szTheory/exifcleaner#383 ·
メンテナーはふだん 1 日以内に返信
-
1.severity: security
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
NixOS/nixpkgs#569828 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信