[exo-jcr-commits] exo-jcr SVN: r994 - jcr/branches/1.12.0-OPT/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/storage/value/fs/operations.

do-not-reply at jboss.org do-not-reply at jboss.org
Thu Dec 10 12:08:09 EST 2009


Author: tolusha
Date: 2009-12-10 12:08:09 -0500 (Thu, 10 Dec 2009)
New Revision: 994

Modified:
   jcr/branches/1.12.0-OPT/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/storage/value/fs/operations/ValueFileIOHelper.java
Log:
EXOJCR-300: fix ClassCastException

Modified: jcr/branches/1.12.0-OPT/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/storage/value/fs/operations/ValueFileIOHelper.java
===================================================================
--- jcr/branches/1.12.0-OPT/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/storage/value/fs/operations/ValueFileIOHelper.java	2009-12-10 16:39:00 UTC (rev 993)
+++ jcr/branches/1.12.0-OPT/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/storage/value/fs/operations/ValueFileIOHelper.java	2009-12-10 17:08:09 UTC (rev 994)
@@ -131,7 +131,7 @@
       }
       else
       {
-         // transient Value
+         // stream Value
          File tempFile;
          if ((tempFile = ((StreamPersistedValueData)value).getTempFile()) != null)
          {
@@ -152,7 +152,7 @@
          else
          {
             // not spooled, use InputStream
-            copyClose(value.getAsStream(), new FileOutputStream(file));
+            copyClose(((StreamPersistedValueData)value).getStream(), new FileOutputStream(file));
          }
          // map this transient Value to file in VS
          ((StreamPersistedValueData)value).setPersistedFile(file);



More information about the exo-jcr-commits mailing list