[
https://issues.apache.org/jira/browse/GERONIMO-4125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rick McGuire closed GERONIMO-4125.
----------------------------------
Resolution: Fixed
Committed revision 669135.
> Mismatch in predefined Internet headers with Sun implementation
> ---------------------------------------------------------------
>
> Key: GERONIMO-4125
> URL: https://issues.apache.org/jira/browse/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();
> dumper.dump();
> }
>
> 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.