activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r1038996 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/blob/FileSystemBlobStrategy.java
Date Thu, 25 Nov 2010 10:34:17 GMT
Author: gtully
Date: Thu Nov 25 10:34:16 2010
New Revision: 1038996

URL: http://svn.apache.org/viewvc?rev=1038996&view=rev
Log:
remove 1.6 ism, let it compile with jdk 1.5

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/blob/FileSystemBlobStrategy.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/blob/FileSystemBlobStrategy.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/blob/FileSystemBlobStrategy.java?rev=1038996&r1=1038995&r2=1038996&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/blob/FileSystemBlobStrategy.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/blob/FileSystemBlobStrategy.java
Thu Nov 25 10:34:16 2010
@@ -118,7 +118,8 @@ public class FileSystemBlobStrategy impl
     		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



Mime
View raw message