-
Notifications
You must be signed in to change notification settings - Fork 26
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
compiler warnings: some AutoClosable class could throw InterruptedException #322
Comments
I've been insofar unable to remove that warning with the approaches that I've tried. I would love for someone else to take a crack at it. |
As described oh so tersely at https://bugs.openjdk.java.net/browse/JDK-8155591, this warning isn't very precise. We are hitting it because Options:
None of those are great, (B) might be the least bad? |
Aren't the typical "try" warnings useful? If so, I would lean towards (C). However, infuriating that may be. |
I'm not sure what all of the "try" warnings are, but yes I think the others are probably useful. I suppose at the least we could add comments to relevant methods so that the next time someone tries to cleanup warnings they are saved some time. |
👍 |
… on Autoclosable.close()
From https://docs.oracle.com/javase/8/docs/api/java/lang/AutoCloseable.html
Implementers of this interface are also strongly advised to not have the close method throw InterruptedException
The text was updated successfully, but these errors were encountered: