Skip to content

False negative about FI_EXPLICIT_INVOCATION #2029

@Zustin

Description

@Zustin

Hi, I found a false negative about the rule FI_EXPLICIT_INVOCATION. In the following code example, SpotBugs should report a warning at line 4, but it does not.

public class C {
  public class subC {
    void bug(C any) throws Throwable {
      any.finalize();  // should report a warning at this line
    }
  }
}

SpotBugs Version: Latest

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions