You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Rick McGuire (JIRA)" <de...@geronimo.apache.org> on 2006/03/07 19:25:40 UTC

[jira] Created: (GERONIMO-1708) javax.mail.internet.MimeMessage use of private methods short circuits lazy loading by MimeMessage subclasses.

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


[jira] Resolved: (GERONIMO-1708) javax.mail.internet.MimeMessage use of private methods short circuits lazy loading by MimeMessage subclasses.

Posted by "Jacek Laskowski (JIRA)" <de...@geronimo.apache.org>.
     [ 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


[jira] Updated: (GERONIMO-1708) javax.mail.internet.MimeMessage use of private methods short circuits lazy loading by MimeMessage subclasses.

Posted by "Rick McGuire (JIRA)" <de...@geronimo.apache.org>.
     [ 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