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