-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[java] @ThisModifier compare not working #902
Copy link
Copy link
Closed
Labels
a:questionRequest for information that doesn't necessarily entail changes to the code baseRequest for information that doesn't necessarily entail changes to the code basein:xpathRelating to xpath support at large, eg Jaxen / Saxon, custom functions, attribute resolutionRelating to xpath support at large, eg Jaxen / Saxon, custom functions, attribute resolution
Metadata
Metadata
Assignees
Labels
a:questionRequest for information that doesn't necessarily entail changes to the code baseRequest for information that doesn't necessarily entail changes to the code basein:xpathRelating to xpath support at large, eg Jaxen / Saxon, custom functions, attribute resolutionRelating to xpath support at large, eg Jaxen / Saxon, custom functions, attribute resolution
Type
Fields
Give feedbackNo fields configured for issues without a type.
Affects PMD Version:
6.0.2
Description:
I'm trying to write a custom XPath rule that is based on detecting
//PrimaryExpression[PrimaryPrefix/@ThisModifier='true']Doesn't match. Neither does:
//PrimaryExpression/PrimaryPrefix[@ThisModifier='true']While in designer
//PrimaryExpression/PrimaryPrefixselects the right nodes and "ThisModifier = true".Code Sample demonstrating the issue:
Running PMD through:
Designer