-
Notifications
You must be signed in to change notification settings - Fork 45
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 BED_BOGUS_EXCEPTION_DECLARATION for method that calls String.getBytes(String) #406
Comments
I think it is because fb-contrib/src/main/java/com/mebigfatguy/fbcontrib/detect/BogusExceptionDeclaration.java Lines 57 to 63 in 28c23d6
invokevirtual (182) in this case) prevents to take the branch at fb-contrib/src/main/java/com/mebigfatguy/fbcontrib/detect/BogusExceptionDeclaration.java Line 232 in 28c23d6
In effect exception is not removed at fb-contrib/src/main/java/com/mebigfatguy/fbcontrib/detect/BogusExceptionDeclaration.java Line 252 in 28c23d6
|
This comment was marked as outdated.
This comment was marked as outdated.
Hi, @mebigfatguy As this repo seems to be alive again - could you check if this one is fixable, please? If needed, reproducer updated to use sb-contrib:7.6.2, can be published again. |
targetted for 7.6.3 |
thank you |
https://docs.oracle.com/javase/7/docs/api/java/lang/String.html#getBytes(java.lang.String) throws, unlike other
getBytes
overloads.Reproducer: https://github.com/pzrep/fb-contrib-BED_BOGUS_EXCEPTION_DECLARATION.
Call
./mvnw verify
to observe:where C.java:
SB plugin version: com.mebigfatguy.sb-contrib:sb-contrib:7.4.7
The text was updated successfully, but these errors were encountered: