You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Hendrik Saly (JIRA)" <ji...@apache.org> on 2014/10/31 22:13:35 UTC

[jira] [Comment Edited] (GERONIMO-6438) geronimo-javamail_1.4_spec wrong cast

    [ https://issues.apache.org/jira/browse/GERONIMO-6438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14192489#comment-14192489 ] 

Hendrik Saly edited comment on GERONIMO-6438 at 10/31/14 9:13 PM:
------------------------------------------------------------------

added a check 
{code}
if(object instanceof String) ...
{code}

Fixed in Revision 1635863


was (Author: salyh):
added a check 
{code}
if(object instanceof String) ...
{code}

> geronimo-javamail_1.4_spec  wrong  cast
> ---------------------------------------
>
>                 Key: GERONIMO-6438
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6438
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: mail
>            Reporter: Roman Bykovskiy
>            Assignee: Hendrik Saly
>              Labels: JM14_1.8.5
>
> org.apache.geronimo.mail.handlers.TextHandler
> line 141:  String content = (String) object;
> But object can be not a String. Shout be object.toString()
> (Fails w error java.lang.ClassCastException: javax.mail.internet.MimeMultipart cannot be cast to java.lang.String)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)