Skip to content

Commit 716d859

Browse files
author
Alexandru Scvortov
committed
don't use an IOException constructor missing in Java 1.5
1 parent 0e968fb commit 716d859

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/com/rabbitmq/client/impl/ChannelN.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public void waitForConfirmsOrDie()
182182
{
183183
if (!waitForConfirms()) {
184184
close(AMQP.REPLY_SUCCESS, "NACKS RECEIVED", true, null, false);
185-
throw new IOException("nacks received", getCloseReason());
185+
throw (IOException)(new IOException("nacks received")).initCause(getCloseReason());
186186
}
187187
}
188188

0 commit comments

Comments
 (0)