A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/issues/3351 below:

[java] ConstructorCallsOverridableMethod ignores abstract methods · Issue #3351 · pmd/pmd · GitHub

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


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4