Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-1241

Mail Attributes retrieved as String even though set as Boolean

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0-M2
    • 3.0-beta3
    • Queue
    • None

    Description

      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

      Attachments

        Activity

          People

            norman Norman Maurer
            arusin Andrzej Rusin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: