james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Markus Wiederkehr (JIRA)" <server-...@james.apache.org>
Subject [jira] Updated: (MIME4J-85) Upgrade source to Java 5
Date Wed, 12 Nov 2008 22:01:44 GMT

     [ https://issues.apache.org/jira/browse/MIME4J-85?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Markus Wiederkehr updated MIME4J-85:

    Attachment: mime4j-java5-v2.patch

Because of problems with the Retrotranslator plugin this second patch replaces the enum with
a Java 1.4 compatible typesafe enum pattern (a class with public static final constants).

It also replaces StringBuffers in the source code with StringBuilders (Retrotranslator is
capable of translating them back).

And the POM now includes the retrotranslator:translate-project goal. As far as I can tell
(and according to Retrotranslators own verify option) the resulting jar file is compatible
with Java 1.4.

I'll leave the first patch attached to this issue just in case..

If someone knows how to configure the Retrotranslator plugin to translate Java 5 enums please
let me know.

> Upgrade source to Java 5
> ------------------------
>                 Key: MIME4J-85
>                 URL: https://issues.apache.org/jira/browse/MIME4J-85
>             Project: JAMES Mime4j
>          Issue Type: Improvement
>    Affects Versions: 0.5
>            Reporter: Markus Wiederkehr
>             Fix For: 0.6
>         Attachments: mime4j-java5-v2.patch, mime4j-java5.patch
> The Mime4j API would greatly benefit from Java 5 language features, most of all Generics.
> For backward compatibility with JVM 1.4 the generated jar file could be transformed using
the Retrotranslator Maven Plugin. If this compatibility is required new features of the Java
5 API (such as StringBuilder) cannot be used.

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

To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org

View raw message