Skip to content
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

Added Closable-inteface to Connection-class for future try-with-resou… #133

Merged
merged 1 commit into from
Feb 6, 2016

Conversation

Khazrak
Copy link
Contributor

@Khazrak Khazrak commented Feb 6, 2016

Fixes #131.

Added Closable in the Connection-class. This will enable try-with-resources if somebody compiles it with JDK7 or later.

I wanted to add it to Channel-class also but it had a checked exception TimedOutException that broke the contract of Closeable so I avoided it.

…rce support in JDK7 (automatic on compile with JDK7)
@michaelklishin michaelklishin self-assigned this Feb 6, 2016
@michaelklishin michaelklishin added this to the n/a milestone Feb 6, 2016
@michaelklishin
Copy link
Member

@Khazrak thank you. Just like with #132, this changes an interface so as much as I'd like to get it into a future 3.6.x release, it should probably ship with 3.7.0 only.

@michaelklishin michaelklishin merged commit 484414e into rabbitmq:master Feb 6, 2016
stream-iori pushed a commit to stream-iori/rabbitmq-java-client that referenced this pull request Mar 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants