geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacek Laskowski (JIRA)" <...@geronimo.apache.org>
Subject [jira] Resolved: (GERONIMO-1708) javax.mail.internet.MimeMessage use of private methods short circuits lazy loading by MimeMessage subclasses.
Date Wed, 08 Mar 2006 17:58:40 GMT
     [ http://issues.apache.org/jira/browse/GERONIMO-1708?page=all ]
     
Jacek Laskowski resolved GERONIMO-1708:
---------------------------------------

    Fix Version: 1.x
     Resolution: Fixed
      Assign To: Jacek Laskowski

Committed. Thanks Rick! (the tests would be very useful, though ;))

> 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
>     Assignee: Jacek Laskowski
>      Fix For: 1.x
>  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