Skip to content

Fix: honor imported overrides of core built-ins - #1167

Merged
fglock merged 1 commit into
masterfrom
fix/issue-1155
Aug 27, 2026
Merged

Fix: honor imported overrides of core built-ins#1167
fglock merged 1 commit into
masterfrom
fix/issue-1155

Conversation

@fglock

@fglock fglock commented Aug 27, 2026

Copy link
Copy Markdown
Owner

Summary

Fixes #1155.

PerlOnJava treated imported chmod and lock subroutines as core built-in
opcodes because those names were missing from the parser's overridable-core
allowlist. Add both names so Exporter-style CODE-slot imports dispatch to the
imported subroutine while explicit CORE:: calls retain built-in behavior.

Validation

  • Regression test passes with system Perl.
  • Regression test passes on JVM and interpreter backends.
  • make passes.
  • make check-links passes.

This is a WIP PR for review of the resolution approach and coverage.

Add chmod and lock to the parser's overridable core built-in set so
Exporter-style imports dispatch to the imported subroutine. Keep explicit
CORE:: calls on the built-in path and add regression coverage for both
execution backends.

Generated with [Codex](https://openai.com/codex/)

Co-Authored-By: Codex <codex@openai.com>
@fglock
fglock marked this pull request as ready for review August 27, 2026 19:26
@fglock
fglock merged commit c364ee7 into master Aug 27, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: honor imported overrides of core built-ins

1 participant