geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick McGuire (JIRA)" <...@geronimo.apache.org>
Subject [jira] Updated: (GERONIMO-1708) javax.mail.internet.MimeMessage use of private methods short circuits lazy loading by MimeMessage subclasses.
Date Tue, 07 Mar 2006 18:25:40 GMT
     [ http://issues.apache.org/jira/browse/GERONIMO-1708?page=all ]

Rick McGuire updated GERONIMO-1708:
-----------------------------------

    Attachment: GERONIMO-1708.patch

Applied to the geronimo-spec-javamail module. 

> 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


Mime
View raw message