You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: There are 2 long-standing issues with MissingOverride, related to overriding of a method using type parameters of a parameterized supertype. This is caused by its implementation strategy, since it counts bridge methods in a Class file.
The issue is described at length around this line:
Affects PMD Version: Since 6.2.0, when the rule was introduced
Rule: MissingOverride
Description: There are 2 long-standing issues with MissingOverride, related to overriding of a method using type parameters of a parameterized supertype. This is caused by its implementation strategy, since it counts bridge methods in a Class file.
The issue is described at length around this line:
pmd/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/rule/bestpractices/MissingOverrideRule.java
Line 286 in 59f1fe2
There are already regression tests in the test file:
pmd/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/rule/bestpractices/xml/MissingOverride.xml
Lines 379 to 444 in 59f1fe2
This may be fixed easily in PMD 7, since we don't use Class files and have all necessary utilities to test for overriding in TypeOps already:
pmd/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/types/TypeOps.java
Line 1317 in 1b13771
pmd/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/types/TypeOps.java
Line 1213 in 1b13771
Expected outcome:
PMD should report violations for the two test cases, this is a false negative
The text was updated successfully, but these errors were encountered: