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
False positive CT_CONSTRUCTOR_THROW on canonical "Compliant Solution" #2710
Comments
TY! I'll update Apache Commons Parent when the next release comes out. |
Hello @iloveeclipse and all:
WDYT? |
I think that you are absolutely right, I'm really sorry. Thank you for bringing it up. |
Hello @JuditKnoll |
Will 4.8.3 be published on https://repo1.maven.org/maven2/com/github/spotbugs/spotbugs/ ? |
@garydgregory Its released now, however, waiting on @JuditKnoll to push it out of sonatype. Should be done probably tonight. Trying to make sure more than just one person now actively maintaining here can do that so we are not stuck waiting. If @JuditKnoll has any issues, I'll finish it off tomorrow evening. |
- Fixes spotbugs/spotbugs#2710 - Doesn't fix spotbugs/spotbugs#2710
The bug description for CT_CONSTRUCTOR_THROW at https://spotbugs.readthedocs.io/en/stable/bugDescriptions.html#ct-be-wary-of-letting-constructors-throw-exceptions-ct-constructor-throw says:
The link https://wiki.sei.cmu.edu/confluence/display/java/OBJ11-J.+Be+wary+of+letting+constructors+throw+exceptions provides the compliant solution:
which blows up SpotBugs checks:
This example reflects what I see in Commons IO when I try to address 64 such issues with a compliant solution.
The text was updated successfully, but these errors were encountered: