Skip to content

Fix qualified indirect constructors in new methods - #1900

Merged
fglock merged 2 commits into
masterfrom
fix/apache-admin-config-tree-autoload
Oct 27, 2026
Merged

fglock merged 2 commits into
masterfrom
fix/apache-admin-config-tree-autoload

Conversation

@fglock

@fglock fglock commented Oct 27, 2026 •

Copy link
Copy Markdown
Owner

Summary

Fix forward qualified indirect constructors inside a new method when the target package is declared later in the file. Add regression coverage for constructor object type and argument forwarding.

Fixes #1899.

Validation

  • New unit test passes under system Perl: 1 file, 6 tests.
  • New unit test failed on the unfixed parent on both backends and passes after the fix on JVM and interpreter.
  • Apache-Admin-Config 0.95 passes on JVM and interpreter: 13 files, 1,042 tests per backend.
  • nice -n 19 make passes against the PR tree based on current master af8167d.
  • nice -n 19 make check-links passes with zero link errors.

Add regression coverage for a fully qualified class used by an indirect
constructor before that package is declared. This matches the constructor
pattern used by Apache-Admin-Config.

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

Co-Authored-By: Codex <158243242+openai-codex[bot]@users.noreply.github.com>
When a constructor method uses an indirect constructor for a fully qualified
class that is declared later, keep the expression as indirect-object syntax
instead of resolving it as a direct call to the current new method. Cover the
behavior and record the CPAN compatibility fix.

Fixes #1899.

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

Co-Authored-By: Codex <158243242+openai-codex[bot]@users.noreply.github.com>
@fglock
fglock marked this pull request as ready for review October 27, 2026 13:10
@fglock
fglock merged commit e02490c into master Oct 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.

Apache-Admin-Config 0.95 fails in AUTOLOAD method proxy calls

1 participant