From fa6d939a2e0af8c6dc05bf76a46bf49cab51e494 Mon Sep 17 00:00:00 2001 From: Gary Tully Date: Thu, 25 Nov 2010 10:34:16 +0000 Subject: [PATCH] remove 1.6 ism, let it compile with jdk 1.5 git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1038996 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/activemq/blob/FileSystemBlobStrategy.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/activemq-core/src/main/java/org/apache/activemq/blob/FileSystemBlobStrategy.java b/activemq-core/src/main/java/org/apache/activemq/blob/FileSystemBlobStrategy.java index b0d3ba2dc5..022aec1d98 100644 --- a/activemq-core/src/main/java/org/apache/activemq/blob/FileSystemBlobStrategy.java +++ b/activemq-core/src/main/java/org/apache/activemq/blob/FileSystemBlobStrategy.java @@ -118,7 +118,8 @@ public class FileSystemBlobStrategy implements BlobUploadStrategy, BlobDownloadS try { return new File(message.getURL().toURI()); } catch (URISyntaxException e) { - throw new IOException("Unable to open file for message " + message ,e); + IOException ioe = new IOException("Unable to open file for message " + message); + ioe.initCause(e); } } //replace all : with _ to make windows more happy