Skip to content

Object::HashBase 0.018 fails constants and Role::Tiny composition #1102

Description

@fglock

Object::HashBase 0.018 fails role composition and constant behavior

The CPAN tester run for Object::HashBase-0.018 fails 4 of 97 tests under PerlOnJava, while the complete upstream suite passes under system Perl.

Failures

  • t/HashBase.t: readonly constant behavior returns not const instead of const.
  • t/role_consume.t: the role is not composed into the consumer; cr and set_cr are missing.
  • t/role_modifiers.t: the deferred around modifier is not applied (inner instead of wrapped(inner)).

The failures reproduce with both the JVM backend and the interpreter backend. System Perl passes all 115 tests using Role::Tiny 2.002005.

Reproduction

Distribution: Object::HashBase-0.018

Archived CPAN report:
/tmp/cpan_random_logs/20260824-171428-41866/failures/Object-HashBase--from--Object-HashBase.log

Focused failing tests:

timeout 120 ./jperl t/role_consume.t
timeout 120 ./jperl t/role_modifiers.t
timeout 120 ./jperl --interpreter t/role_consume.t
timeout 120 ./jperl --interpreter t/role_modifiers.t

The issue appears to involve PerlOnJava handling of compile-time constant/sub installation and deferred Role::Tiny method composition.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions