geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick McGuire (JIRA)" <>
Subject [jira] Created: (GERONIMO-4125) Mismatch in predefined Internet headers with Sun implementation
Date Wed, 18 Jun 2008 11:18:45 GMT
Mismatch in predefined Internet headers with Sun implementation

                 Key: GERONIMO-4125
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
            Reporter: Rick McGuire
            Assignee: Rick McGuire
            Priority: Minor
             Fix For: 2.2

The javax.mail.internet.InternetHeaders class is supposed to create a pre-defined list of
headers with null values with the intent of fixing the preferred order of the headers and
also defining the preferred case.  The Geronimo pre-defined list does not match the Sun implementation.
 There are missing headers, headers are at different positions, and the case of some headers
is also different. 

The following small program can demonstrate the problem. 

import javax.mail.internet.InternetHeaders; 

public class DumpHeaders  
    static public void main(String [] args) {
        HeaderDumper dumper = new HeaderDumper(); 
    static public class HeaderDumper extends InternetHeaders {
        void dump() {
            for (int i = 0; i < headers.size(); i++) {
                InternetHeader header = (InternetHeader)headers.get(i); 
                System.out.println("Header at position " + i + " is " + header.getName());


This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message