javax.mail.internet.MimeMessage use of private methods short circuits lazy
loading by MimeMessage subclasses.
--------------------------------------------------------------------------------------------------------------
Key: GERONIMO-1708
URL: http://issues.apache.org/jira/browse/GERONIMO-1708
Project: Geronimo
Type: Bug
Versions: 1.2
Reporter: Rick McGuire
Attachments: GERONIMO-1708.patch
The MimeMessage class has a private method getHeaderAsAddresses() that calls a
package scope method in the InternetHeaders class. Because this private
message bypasses the public MimeMessage methods for retrieving headers, it is
impossible for MimeMessage subclasses such as POP3Message and NNTPMessage to
implement lazy loading of the headers from the server. This can result in null
values getting returned from methods such as getFrom(), because the message
does not have any headers loaded from the server source.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira