You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by jo...@apache.org on 2006/07/15 15:59:32 UTC

svn commit: r422219 - /jakarta/commons/proper/transaction/trunk/src/java/org/apache/commons/transaction/file/FileResourceManager.java

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