[java] AccessorMethodGeneration: Name clash with another public field not properly handled #342
Labels
a:false-positive
PMD flags a piece of code that is not problematic
in:symbol-table
Affects the symbol table code
in:type-resolution
Affects the type resolution code
Milestone
Rule Set: AccessorMethodGeneration (Java - Design), PMD 5.5.5
Description:
It appears that the rule AccessorMethodGeneration fails to resolve name clash with public field in another class with identical name.
Code Sample demonstrating the issue:
Changing
ClassB#field
to e.g.ClassB#field0
removes the violation.Running PMD through: Gradle
The text was updated successfully, but these errors were encountered: