geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick McGuire (JIRA)" <j...@apache.org>
Subject [jira] Created: (GERONIMO-3590) javamail TextHandler fails when content stream is ByteArrayInputStream.
Date Thu, 08 Nov 2007 10:55:51 GMT
javamail TextHandler fails when content stream is ByteArrayInputStream.
-----------------------------------------------------------------------

                 Key: GERONIMO-3590
                 URL: https://issues.apache.org/jira/browse/GERONIMO-3590
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: mail
            Reporter: Rick McGuire
            Assignee: Rick McGuire


The TextHandler included with the javamail spec code gets an I/O failure when the contentStream()
used to read the text is a ByteArrayInputStream.  The read method for ByteArrayInputStream
does not appear to return a -1 value for an EOF (it returns 0), so the InputStreamReader wrappered
around the stream is throwing an exception on the first 0 return.  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message