Permalink
Browse files

One last (?) fix to make things compile and work on 1.5

  • Loading branch information...
1 parent 77a00cb commit 7caa4f1a726103f92faad45e57dde2872db54f13 @cowtowncoder cowtowncoder committed Apr 20, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/test/java/com/fasterxml/jackson/core/json/TestBase64Parsing.java
@@ -68,7 +68,9 @@ public void _testBase64Text(boolean useBytes) throws Exception
try {
data = jp.getBinaryValue(variant);
} catch (Exception e) {
- throw new IOException("Failed (variant "+variant+", data length "+len+"): "+e.getMessage(), e);
+ IOException ioException = new IOException("Failed (variant "+variant+", data length "+len+"): "+e.getMessage());
+ ioException.initCause(e);
+ throw ioException;
}
assertNotNull(data);
assertArrayEquals(data, input);

0 comments on commit 7caa4f1

Please sign in to comment.