From 6ceec19ef371b16b275db64efda03a80c6fe83c4 Mon Sep 17 00:00:00 2001 From: Gary Russell Date: Fri, 16 Apr 2010 23:31:13 +0000 Subject: [PATCH] Fix JDK6/5 problem w/ IOException --- .../springframework/integration/ip/tcp/NioSocketWriter.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/org.springframework.integration.ip/src/main/java/org/springframework/integration/ip/tcp/NioSocketWriter.java b/org.springframework.integration.ip/src/main/java/org/springframework/integration/ip/tcp/NioSocketWriter.java index b3743dcb85..ceca448b79 100644 --- a/org.springframework.integration.ip/src/main/java/org/springframework/integration/ip/tcp/NioSocketWriter.java +++ b/org.springframework.integration.ip/src/main/java/org/springframework/integration/ip/tcp/NioSocketWriter.java @@ -143,7 +143,7 @@ public class NioSocketWriter extends AbstractSocketWriter { channel.write(buffer); return; } catch (InterruptedException e) { - throw new IOException("Could not get buffer", e); + throw new IOException("Could not get buffer; interrupted"); } finally { returnBuffer(buffer); } @@ -183,7 +183,7 @@ public class NioSocketWriter extends AbstractSocketWriter { channel.write(buffer); return; } catch (InterruptedException e) { - throw new IOException("Could not get buffer", e); + throw new IOException("Could not get buffer; interrupted"); } finally { returnBuffer(buffer); } @@ -218,7 +218,7 @@ public class NioSocketWriter extends AbstractSocketWriter { channel.write(buffer); return; } catch (InterruptedException e) { - throw new IOException("Could not get buffer", e); + throw new IOException("Could not get buffer; interrupted"); } finally { returnBuffer(buffer); }