FP on squid:RedundantThrowsDeclarationCheck when non super constructor call.

java

(Nicolas Schröder) #1

Sonar Version: 6.7.5.38563
SonarJava: 5.9.2

Description:
Superfluous throw declaration warning in child class when non super constructor call.
Child class has not default constructor.

Minimum code example:

public class A {
     public A() throws IllegalAccessException {
          throw new IllegalAccessException();
     }
}

public class B extends A {
     public B(String a) throws IllegalAccessException {
          // implicit call super constructor
          System.out.println(a);
     }
}