From 7a834cad6e5dd268b2861a030e0fdf5cfd331a78 Mon Sep 17 00:00:00 2001 From: "Miron Cuperman (devrandom)" Date: Mon, 24 Oct 2011 04:39:35 +0000 Subject: [PATCH] Fix another Java-6ism --- tests/com/google/bitcoin/core/MockNetworkConnection.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/com/google/bitcoin/core/MockNetworkConnection.java b/tests/com/google/bitcoin/core/MockNetworkConnection.java index 3f8158854..30cb5e540 100644 --- a/tests/com/google/bitcoin/core/MockNetworkConnection.java +++ b/tests/com/google/bitcoin/core/MockNetworkConnection.java @@ -72,7 +72,7 @@ public class MockNetworkConnection implements NetworkConnection { throw new RuntimeException("Unknown object in inbound queue."); } } catch (InterruptedException e) { - throw new IOException(e); + throw new IOException(e.getMessage()); } finally { synchronized (this) { waitingToRead = false; @@ -84,7 +84,7 @@ public class MockNetworkConnection implements NetworkConnection { try { outboundMessageQ.put(message); } catch (InterruptedException e) { - throw new IOException(e); + throw new IOException(e.getMessage()); } }