commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ima...@apache.org
Subject svn commit: r475689 - in /jakarta/commons/proper/vfs/trunk: core/src/main/java/org/apache/commons/vfs/provider/DefaultFileContent.java sandbox/pom.xml
Date Thu, 16 Nov 2006 11:30:23 GMT
Author: imario
Date: Thu Nov 16 03:30:22 2006
New Revision: 475689

URL: http://svn.apache.org/viewvc?view=rev&rev=475689
Log:
fixed CCE, added missing dependency to sandbox (commons-logging)

Modified:
    jakarta/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/provider/DefaultFileContent.java
    jakarta/commons/proper/vfs/trunk/sandbox/pom.xml

Modified: jakarta/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/provider/DefaultFileContent.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/provider/DefaultFileContent.java?view=diff&rev=475689&r1=475688&r2=475689
==============================================================================
--- jakarta/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/provider/DefaultFileContent.java
(original)
+++ jakarta/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/provider/DefaultFileContent.java
Thu Nov 16 03:30:22 2006
@@ -397,8 +397,15 @@
 			// Close the randomAccess stream
 			while (getThreadData().getRastrsSize() > 0)
 			{
-				final FileContentInputStream instr = (FileContentInputStream) getThreadData().removeRastr(0);
-				instr.close();
+				final RandomAccessContent ra = (RandomAccessContent) getThreadData().removeRastr(0);
+				try
+				{
+					ra.close();
+				}
+				catch (IOException e)
+				{
+					throw new FileSystemException(e);
+				}
 			}
 
 			// Close the output stream

Modified: jakarta/commons/proper/vfs/trunk/sandbox/pom.xml
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/vfs/trunk/sandbox/pom.xml?view=diff&rev=475689&r1=475688&r2=475689
==============================================================================
--- jakarta/commons/proper/vfs/trunk/sandbox/pom.xml (original)
+++ jakarta/commons/proper/vfs/trunk/sandbox/pom.xml Thu Nov 16 03:30:22 2006
@@ -47,6 +47,12 @@
 	</licenses>
 
 	<dependencies>
+                <dependency>
+                        <groupId>commons-logging</groupId>
+                        <artifactId>commons-logging</artifactId>
+                        <version>1.0.4</version>
+                </dependency>
+
 		<dependency>
 			<groupId>org.apache.commons</groupId>
 			<artifactId>commons-vfs</artifactId>



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message