james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Bagnara <apa...@bago.org>
Subject Re: [mime4j] Retrotranslator for Java 5
Date Wed, 12 Nov 2008 09:21:25 GMT
Markus Wiederkehr ha scritto:
> I am trying to use the Retrotranslator Maven plugin to create a JRE
> 1.4 compatible version of Mime4j after the source code has been
> migrated to Java 5. The byte-code translation seems to work and the
> resulting class files are version 48 (1.4). So far so good..
> But my patch currently uses an enum and this is where the problem
> begins. A Java 5 enum implicitly extends java.lang.Enum which is not
> present in Java 1.4. But according to the documentation
> Retrotranslator should be able to replace java.lang.Enum with its own
> version. It should even be possible to embed this replaced version in
> the resulting jar file.

I don't remember if I ever had an Enum in my past usage of
retrotranslator but IIRC it was replacing java5 classes automatically.

> I played around with various parameters (e.g.
> backport=net.sf.retrotranslator.runtime, verify=true, embed=true, ...)
> but it just does not seem to work..
> Can anyone help me out with this?

What pom snippet did you add for retrotranslating and what version of
the plugin(and retrotranslator itself) are you using?


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

View raw message