Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[java] Add an attribute @PackageQualifier to ASTClassType #4990

Open
koalalam opened this issue May 2, 2024 · 1 comment · May be fixed by #5005
Open

[java] Add an attribute @PackageQualifier to ASTClassType #4990

koalalam opened this issue May 2, 2024 · 1 comment · May be fixed by #5005
Labels
an:enhancement An improvement on existing features / rules in:ast About the AST structure or API, the parsing step
Milestone

Comments

@koalalam
Copy link

koalalam commented May 2, 2024

Is your feature request related to a problem? Please describe.

XPath rule to perform prefix-match against full qualfified class is no longer supported in PMD v7 / XPath 3.1 as reported in #4946

Describe the solution you'd like
Add an attribute @PackageQualifier to ASTClassType per mentioned by @oowekyala

For example: starts-with(@PackageQualifier, 'org.apache.commons.collections.')

@koalalam koalalam added the an:enhancement An improvement on existing features / rules label May 2, 2024
@adangel adangel added the in:ast About the AST structure or API, the parsing step label May 2, 2024
@koalalam
Copy link
Author

koalalam commented May 7, 2024

Hello @oowekyala , any chance this enhancemend could be included in the next release?

oowekyala added a commit to oowekyala/pmd that referenced this issue May 11, 2024
@oowekyala oowekyala added this to the 7.2.0 milestone May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
an:enhancement An improvement on existing features / rules in:ast About the AST structure or API, the parsing step
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants