geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hendrik Saly (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GERONIMO-6438) geronimo-javamail_1.4_spec wrong cast
Date Fri, 31 Oct 2014 21:07:34 GMT

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

Mime
View raw message