Skip to content

Add deprecate.pm pragma stub#357

Closed
fglock wants to merge 1 commit into
masterfrom
fix/add-deprecate-pragma
Closed

Add deprecate.pm pragma stub#357
fglock wants to merge 1 commit into
masterfrom
fix/add-deprecate-pragma

Conversation

@fglock
Copy link
Copy Markdown
Owner

@fglock fglock commented Mar 23, 2026

Summary

Adds a no-op stub for the deprecate pragma.

Problem

Module::Pluggable installation failed because Devel::InnerPackage uses use deprecate; which wasn't available in PerlOnJava.

Solution

Added a simple stub that does nothing. The original pragma warns when loading modules from Perl core directories - since PerlOnJava doesn't have core/site library distinction, this is a no-op.

Test Plan

  • use deprecate; works
  • Unit tests pass
  • Module::Pluggable is now installable

Generated with Devin

The deprecate pragma warns when modules are loaded from Perl core
directories. Since PerlOnJava doesn't have the traditional core/site
library distinction, this is a no-op stub.

Fixes Module::Pluggable installation which depends on Devel::InnerPackage
which uses 'use deprecate'.

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@fglock
Copy link
Copy Markdown
Owner Author

fglock commented Mar 23, 2026

Merged into #356

@fglock fglock closed this Mar 23, 2026
@fglock fglock deleted the fix/add-deprecate-pragma branch March 23, 2026 12:17
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.

1 participant