-
Notifications
You must be signed in to change notification settings - Fork 112
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 in BED_BOGUS_EXCEPTION_DECLARATION with jcabi-aspects #706
Comments
@mkordas could you post complete reproducer? |
@mkordas ping |
@krzyk I'll try to work on isolated reproducer tomorrow |
@krzyk cannot find isolated reproducer, closing for now |
@mkordas I think I found when the problem exists. If we have any annotation from jcabi-aspects on a method that throws correct exception, fb-contrib can't findout that the exception is thrown. |
@krzyk right, I was trying to reproduce in isolation without these annotations and I couldn't, so now it makes sense. Should I reopen the issue? I think that we should find workaround ASAP or check should be disabled, as it will cause too much noise for some projects (e.g retryable methods usually throw exceptions...) |
@mkordas yes, let's reopen it, we need to find a way to workaround it somehow.
|
@krzyk issue reopened, description updated |
@davvd valid bug |
@davvd this is urgent |
@krzyk +1 |
@yegor256 it would be easier to fix it with jcabi/jcabi-maven-plugin#45 |
@davvd this is urgent |
@davvd please assign to someone else. |
@davvd this is urgent |
@dskalenko please pick this up, and keep in mind these instructions. Any technical questions - ask right here The budget here is 30 mins, which is exactly how much time will be paid for, when the task is completed |
I have implemented test to be able to fix the problem, now I am stuck , because I can't find elegant solution how I can get unwovenClassesDir parameter from jcabi-maven-plugin, I found something like this http://stackoverflow.com/questions/125389/best-way-to-access-the-runtime-configuration-of-a-maven-plugin-from-a-custom-mojo/130872#130872 |
@dskalenko I think we would need to wait for jcabi/jcabi-maven-plugin#48 to be fixed other option is to temporary disable BED_BOGUS_EXCEPTION_DECLARATION check and create a puzzle to implement it after jcabi/jcabi-maven-plugin#48 is done. Other options I think are too costly. |
…cabi-aspects (add test and for the moment temporary disable BED_BOGUS_EXCEPTION_DECLARATION check)
…cabi-aspects (fix remarks)
…cabi-aspects (fix remarks)
@dskalenko check this "no obligations principle".. This task is on your name for at least 15 days. If you can't close it within the next 48 hours I will have to assign someone else to it. This article should help if you're stuck; -30 added to your rating, current score is: +0 |
…cabi-aspects (fix remarks)
…cabi-aspects (fix remarks)
@dskalenko now you have to ask mkordas to close the issue (if it fixes his problrm) |
@dskalenko ping |
@mkordas Could you please check this issue and close if all good |
@davvd this is not urgent |
@dskalenko Thanks so much! Your account was topped up for 30 mins (transaction ID is added +30 to your rating, now it is equal to +30 |
The following code:
Causes
[INFO] >> M C BED: Non derivable method
connect()declares throwing an exception that isn't thrown
.However, both interface and
this.socket.connect()
declare `throws IOException', so I consider this as false positive.Root cause here is annotation from jcabi-aspects on a method that throws correct exception. In that case fb-contrib can't findout that the exception is thrown. AspectJ must be doing some bytecode magic that makes it hard to detect.
Proposed solution is in #706 (comment)
The text was updated successfully, but these errors were encountered: