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:07:34 UTC

[jira] [Commented] (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 commented on GERONIMO-6438:
----------------------------------------

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
>              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)