Skip to content

[core] Deprecate AbstractRule#asCtx #4814

Open

Description

@adangel

This method was added only as a temporary, transitional solution. The main fix was not finished for 7.0.0 yet, but with 7.x, we should finish it:

  • Provide the RuleContext directly via the typed visitors - no more Object and casting
  • This affects all rules in all languages
  • We should make sure, that the docs (extending PMD with a new language javacc/antlr) are suggesting a correctly typed visitor

Related issues:

Activity

  1. added
    is:deprecation
    on Feb 9, 2024
  2. added this to the 7.x milestone on Feb 9, 2024
  3. modified the milestones: 7.x, 7.18.0 on Sep 12, 2025
  4. self-assigned this
    on Sep 12, 2025
  5. modified the milestones: 7.18.0, 7.19.0 on Oct 27, 2025
  6. modified the milestones: 7.19.0, 7.20.0 on Nov 24, 2025
  7. modified the milestones: 7.20.0, 7.21.0 on Dec 22, 2025
  8. modified the milestones: 7.21.0, 7.22.0 on Jan 23, 2026
  9. modified the milestones: 7.22.0, 7.23.0 on Feb 22, 2026
  10. 6 remaining items

  11. removed this from the 7.25.0 milestone on May 25, 2026
  12. added 3 commits that reference this issue on Jul 30, 2026
  13. added 2 commits that reference this issue on Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

is:deprecation

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions