You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mime4j-dev@james.apache.org by "Benoit Tellier (Jira)" <mi...@james.apache.org> on 2021/04/16 03:16:00 UTC
[jira] [Closed] (MIME4J-262) Message built by MessageBuilder do not
respect getDate() contract
[ https://issues.apache.org/jira/browse/MIME4J-262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benoit Tellier closed MIME4J-262.
---------------------------------
Resolution: Fixed
> Message built by MessageBuilder do not respect getDate() contract
> -----------------------------------------------------------------
>
> Key: MIME4J-262
> URL: https://issues.apache.org/jira/browse/MIME4J-262
> Project: James Mime4j
> Issue Type: Bug
> Reporter: Luc DUZAN
> Priority: Major
> Fix For: 0.8.1
>
>
> Here is the getDate() documentation:
> {quote}
> /**
> * 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();
> {quote}
> Here is the builder code:
> {quote}
> /**
> * 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();
> {quote}
> We can see that MessageBuilder will make getDate() return a date and no null even if the message has no `Date` header
--
This message was sent by Atlassian Jira
(v8.3.4#803005)