commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r422219 - /jakarta/commons/proper/transaction/trunk/src/java/org/apache/commons/transaction/file/FileResourceManager.java
Date Sat, 15 Jul 2006 13:59:32 GMT
Author: joerg
Date: Sat Jul 15 06:59:32 2006
New Revision: 422219

URL: http://svn.apache.org/viewvc?rev=422219&view=rev
Log:
re-establish JDK 1.3 compatibility by using different FileOutputStream constructor

Modified:
    jakarta/commons/proper/transaction/trunk/src/java/org/apache/commons/transaction/file/FileResourceManager.java

Modified: jakarta/commons/proper/transaction/trunk/src/java/org/apache/commons/transaction/file/FileResourceManager.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/transaction/trunk/src/java/org/apache/commons/transaction/file/FileResourceManager.java?rev=422219&r1=422218&r2=422219&view=diff
==============================================================================
--- jakarta/commons/proper/transaction/trunk/src/java/org/apache/commons/transaction/file/FileResourceManager.java
(original)
+++ jakarta/commons/proper/transaction/trunk/src/java/org/apache/commons/transaction/file/FileResourceManager.java
Sat Jul 15 06:59:32 2006
@@ -891,9 +891,8 @@
 
         String resourcePath = getPathForWrite(txId, resourceId);
 
-        File file = new File(resourcePath);
         try {
-            FileOutputStream stream = new FileOutputStream(file, append);
+            FileOutputStream stream = new FileOutputStream(resourcePath, append);
             TransactionContext context = getContext(txId);
             context.registerResource(stream);
             context.readOnly = false;



---------------------------------------------------------------------
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