Affects PMD Version: 6.35.0
Rule:
Please provide the rule name and a link to the rule documentation:
https://pmd.github.io/latest/pmd_rules_java_errorprone.html#constructorcallsoverridablemethod
Description: The rule ignores abstract methods:
|
<description>ignore abstract methods</description> |
|
<expected-problems>0</expected-problems> |
This looks contrary to what the rule is supposed to do.
Code Sample demonstrating the issue:
public class Foo {
public Foo() {
bar();
}
abstract void bar();
}
Expected outcome:
PMD should report a violation but doesn't. This is a false-negative.
Running PMD through: any
Affects PMD Version: 6.35.0
Rule:
Please provide the rule name and a link to the rule documentation:
https://pmd.github.io/latest/pmd_rules_java_errorprone.html#constructorcallsoverridablemethod
Description: The rule ignores abstract methods:
pmd/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/rule/errorprone/xml/ConstructorCallsOverridableMethod.xml
Lines 133 to 134 in b1e7bc1
This looks contrary to what the rule is supposed to do.
Code Sample demonstrating the issue:
Expected outcome:
PMD should report a violation but doesn't. This is a false-negative.
Running PMD through: any