-
Notifications
You must be signed in to change notification settings - Fork 592
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
THROWS_METHOD_THROWS_CLAUSE_BASIC_EXCEPTION false positive with super class #2050
Comments
@baloghadamsoftware could you check this issue when you have time? Thanks in advance! |
@oroszbd Could please take a look on this one? |
IMO, there should be no such violation in general when the exception declaration is inherited from a super class or interface. |
Exact. We see literally hundreds of warnings reported on implementors of
|
I agree. The case where the exception declaration is inherited from the superclass must be ignored. |
Duplicate of #2040 |
With spotbugs-4.7.0, the following snipped incurs THROWS_METHOD_THROWS_CLAUSE_BASIC_EXCEPTION:
The resulting bytecode for the anonymous CacheLoader subclass looks like this:
SpotBugs will complain about the second method and (based on line numbers) will point the user to the perfectly-fine looking source code.
The text was updated successfully, but these errors were encountered: