Author: norman
Date: Tue Nov 30 07:40:15 2010
New Revision: 1040424

URL: http://svn.apache.org/viewvc?rev=1040424&view=rev
Log:
Fix class cast exception when try to cast to FileInputStream

Modified:
    
james/imap/trunk/store/src/main/java/org/apache/james/mailbox/store/streaming/InputStreamContent.java

Modified: 
james/imap/trunk/store/src/main/java/org/apache/james/mailbox/store/streaming/InputStreamContent.java
URL: 
http://svn.apache.org/viewvc/james/imap/trunk/store/src/main/java/org/apache/james/mailbox/store/streaming/InputStreamContent.java?rev=1040424&r1=1040423&r2=1040424&view=diff
==============================================================================
--- 
james/imap/trunk/store/src/main/java/org/apache/james/mailbox/store/streaming/InputStreamContent.java
 (original)
+++ 
james/imap/trunk/store/src/main/java/org/apache/james/mailbox/store/streaming/InputStreamContent.java
 Tue Nov 30 07:40:15 2010
@@ -97,7 +97,7 @@ public final class InputStreamContent im
             }
             
             if (wrapped instanceof FileInputStream) {
-                FileChannel fileChannel = ((FileInputStream)in).getChannel();
+                FileChannel fileChannel = 
((FileInputStream)wrapped).getChannel();
                 fileChannel.transferTo(skipped, fileChannel.size(), channel);
                 fileChannel.close();
             } else {



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to