Uploaded image for project: 'James Mime4j'
  1. James Mime4j
  2. MIME4J-262

Message built by MessageBuilder do not respect getDate() contract

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.8.1
    • None
    • None

    Description

      Here is the getDate() documentation:

      /**

      • Returns the value of the <i>Date</i> header field of this message as
      • <code>Date</code> object or <code>null</code> if it is not present.
        *
      • @return the date of this message.
        */
        Date getDate();

      Here is the builder code:

      /**

      • Returns the value of the <i>Date</i> header field of this message as
      • <code>Date</code> object or <code>null</code> if it is not present.
        *
      • @return the date of this message.
        */
        Date getDate();

      We can see that MessageBuilder will make getDate() return a date and no null even if the message has no `Date` header

      Attachments

        Activity

          People

            Unassigned Unassigned
            lduzan Luc DUZAN
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: