Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 3482 invoked from network); 8 Mar 2006 17:59:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Mar 2006 17:59:29 -0000 Received: (qmail 29163 invoked by uid 500); 8 Mar 2006 17:59:03 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 29057 invoked by uid 500); 8 Mar 2006 17:59:03 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 28989 invoked by uid 99); 8 Mar 2006 17:59:03 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Mar 2006 09:59:02 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Mar 2006 09:59:01 -0800 Received: from ajax (localhost.localdomain [127.0.0.1]) by ajax (Postfix) with ESMTP id C118AD49FD for ; Wed, 8 Mar 2006 17:58:40 +0000 (GMT) Message-ID: <1979901152.1141840720787.JavaMail.jira@ajax> Date: Wed, 8 Mar 2006 17:58:40 +0000 (GMT) From: "Jacek Laskowski (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Resolved: (GERONIMO-1708) javax.mail.internet.MimeMessage use of private methods short circuits lazy loading by MimeMessage subclasses. In-Reply-To: <2051167003.1141755940149.JavaMail.jira@ajax> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ 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