Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 5.6
-
Component/s: None
-
Labels:None
Description
Run Eclipse with a JDK 8.
Create a Java project targeting a JDK 13, with this code snippet:
class TooManyRootsException extends java.lang.RuntimeException { public TooManyRootsException(String message) { super(message); } }
Despite the fact the class is extending RuntimeException, the rule java:S2166 is creating an issue: Rename this class to remove "Exception" or correct its inheritance.
For another reproducer with rule java:S1854, see https://community.sonarsource.com/t/sonarlint-wrong-useless-assignment-to-local-variables/24297
Attachments
Issue Links
- depends upon
-
SONARJAVA-3056 Classes for the analysis are loaded with parent first strategy
-
- Closed
-
-
SLE-404 Update embedded Java analyzer to 6.10
-
- Closed
-
- links to