[
https://issues.apache.org/jira/browse/JAMES-1241?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Norman Maurer resolved JAMES-1241.
----------------------------------
Resolution: Fixed
Fix Version/s: 3.0-M3
Assignee: Norman Maurer
fixed
> Mail Attributes retrieved as String even though set as Boolean
> --------------------------------------------------------------
>
> Key: JAMES-1241
> URL: https://issues.apache.org/jira/browse/JAMES-1241
> Project: JAMES Server
> Issue Type: Bug
> Components: Queue
> Affects Versions: 3.0-M2
> Reporter: Andrzej Rusin
> Assignee: Norman Maurer
> Fix For: 3.0-M3
>
>
> I set a boolean attribute to a Mail:
> boolean smartHostSSL = false;
> mail.setAttribute(SMARTHOSTSSL, smartHostSSL);
> and then I retireve it in another method:
> boolean smartHostSSL = (Boolean)mail.getAttribute(SMARTHOSTSSL);
> and there's an exception on this very line:
> java.lang.ClassCastException: java.lang.String cannot be cast to
> java.lang.Boolean
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]