Skip to content

[CPAN] Mock-Quick 1.111 fails t/Util.t and t/object_control.t #2021

Open

Description

@fglock

Summary

Mock-Quick 1.111 fails its upstream test suite on PerlOnJava, although the archived system Perl oracle passes all tests. The focused failures differ by backend: the JVM backend cannot compile t/Util.t and fails t/object_control.t; the interpreter executes t/Util.t but fails an exportability check, while t/object_control.t passes.

This is based on CPAN random tester run 20261109-091152-39587 and a focused reproduction on PerlOnJava commit 7925f28d1 (fix/anchored-regex-and-scalar-concat). The distribution and its prerequisites are pure Perl; no native-code or external service prerequisite was involved.

Evidence

  • System Perl oracle: Mock-Quick 1.111 passed all 10 test programs and 174 tests. The archived oracle used Homebrew Perl 5.42.2 on macOS 26.7.1, with Temurin OpenJDK 24.0.2 available in the environment.
  • JVM backend: t/Util.t exits during parsing at line 12 with Not implemented: LexerToken{type=IDENTIFIER, text='qw'}, near qw/Mock. t/object_control.t fails its basic test group at line 34 with Can't locate object method "call" in this instance.
  • Interpreter backend: t/Util.t runs but fails main->can(...) (test 3); t/object_control.t passes all 13 tests.
  • Archived CPAN result: the target record is FAIL, 143/144 subtests passed, with 2/10 test programs failing. Missing prerequisites were installed during the run: Exporter::Declare 0.114, Fennec::Lite 0.004, Meta::Builder 0.004, and aliased 0.34. The standalone system Perl oracle later completed all target and prerequisite suites successfully.

Reproduction

Install Mock-Quick 1.111 and its declared prerequisites, then run its upstream test suite with each backend. The two stable failing files are t/Util.t and t/object_control.t; the interpreter/JVM outcomes are listed above. The complete upstream suite passes under system Perl 5.42.2.

Expected behavior

Mock-Quick's upstream tests should pass on both PerlOnJava backends, matching standard Perl for these valid import, qw//, and object-control behaviors.

Please investigate the parser failure, the interpreter exportability mismatch, and the JVM object-control failure. These may have separate causes; split into focused issues if they do.

Activity

  1. added
    bug
    area:parser
    area:runtime
    area:cpan-port
    area:backend
    on Nov 10, 2026
  2. fglock commented on Nov 17, 2026

    @fglock
    OwnerAuthor

    State: active
    Agent/session: Codex / cpan-compat-2068-2038-2021-2000-20261117
    Scope: #2068 MakeMaker install_share; #2038 Object::InsideOut JVM dynamic exception method; #2021 Mock-Quick parser/runtime/backend gaps; #2000 List::Util::PP scalar pairgrep and B::SVf_IVisUV only, excluding ownership paths active under #2043.
    Work: branch fix/cpan-compat-2068-2038-2021-2000, source c832739ecc; single combined PR requested.
    Checkpoint: 2026-11-17 UTC. Checkout was clean and branch created. Read latest issue reports; #2000's BigInt fix is already merged in #2004 and its callback/refcount items overlap active ownership PR #1938/#2043. No overlapping claim found for the other three issues.
    Evidence: Current issue reports identify four separate behavior classes. Existing #2000 suite evidence is CPAN run 20261109-091152-39587; remaining independent targets are scalar pairgrep context and missing B::SVf_IVisUV. Current ownership handoff is #2043, PR #1938.
    Blocked by: none; any lifecycle-related #2000 findings will be reported and held from implementation until ownership work is coordinated.
    Next: refresh focused reproducers on current master, add system-Perl-validated tests, implement independent causes, then run both backends, distribution acceptances and full required gates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:backendarea:cpan-portarea:parserarea:runtimebug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions