Fix Java6isms

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1185100 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/bundleplugin/src/main/java/aQute/libg/cryptography/Signer.java b/bundleplugin/src/main/java/aQute/libg/cryptography/Signer.java
index a068677..82f7e1f 100644
--- a/bundleplugin/src/main/java/aQute/libg/cryptography/Signer.java
+++ b/bundleplugin/src/main/java/aQute/libg/cryptography/Signer.java
@@ -16,7 +16,7 @@
 		try {
 			signature.update(buffer, offset, length);
 		} catch (SignatureException e) {
-			throw new IOException(e);
+			throw new IOException(e.getMessage());
 		}
 	}
 
@@ -24,7 +24,7 @@
 		try {
 			signature.update((byte) b);
 		} catch (SignatureException e) {
-			throw new IOException(e);
+			throw new IOException(e.getMessage());
 		}
 	}
 	
diff --git a/bundleplugin/src/main/java/aQute/libg/cryptography/Verifier.java b/bundleplugin/src/main/java/aQute/libg/cryptography/Verifier.java
index 90d6993..efec04f 100644
--- a/bundleplugin/src/main/java/aQute/libg/cryptography/Verifier.java
+++ b/bundleplugin/src/main/java/aQute/libg/cryptography/Verifier.java
@@ -18,7 +18,7 @@
 		try {
 			signature.update(buffer, offset, length);
 		} catch (SignatureException e) {
-			throw new IOException(e);
+			throw new IOException(e.getMessage());
 		}
 	}
 
@@ -27,7 +27,7 @@
 		try {
 			signature.update((byte) b);
 		} catch (SignatureException e) {
-			throw new IOException(e);
+			throw new IOException(e.getMessage());
 		}
 	}