mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Trustin Lee" <trus...@gmail.com>
Subject Re: use java 5 and retroweaver for 1.4 compatibility
Date Tue, 07 Mar 2006 05:04:31 GMT
On 3/7/06, peter royal <proyal@apache.org> wrote:
>
> On Mar 6, 2006, at 9:21 PM, Trustin Lee wrote:
> > On 3/7/06, peter royal <peter.royal@pobox.com> wrote:
> >>
> >> I have no idea how to make it automatic, but if you add:
> >>
> >>         <plugin>
> >>          <groupId>org.codehaus.mojo</groupId>
> >>          <artifactId>retrotranslator-maven-plugin</artifactId>
> >>        </plugin>
> >>
> >> to the POM, and then run 'mvn retrotranslator:translate', it will
> >> translate the classes.. as for turning them into a jar and
> >> integration into the build, nfi, since maven doesn't have any
> >> documentation :)
> >
> >
> > I know the plugin, but my question is: 'Does the translated JAR
> > deployed
> > when I run mvn deploy or mvn install?'  Did you try installation or
> > deployment?  If the translated JAR is also processed, this is a
> > very good
> > news... though I guess Maven won't do this magic for us. :)  So my
> > idea is
> > to build a project type called 'retrotranslated-jar' which pulls a
> > JAR from
> > an M2 repository and retro-translate it.
>
> I think it will translate the source.. when you do what I mentioned
> before, it processes the source of the project.. so I believe that in
> principal, we should be able to generate 2 jars, the regular jar, and
> a translated one. I'll continue to track down how to make this work :)
> -pete


It translates byte code AFAIK.  Please take a look at this description:

Retrotranslator <http://sourceforge.net/projects/retrotranslator> is a Java
> bytecode transformer that translates Java classes compiled with JDK 5.0into classes that
can be run on JVM
> 1.4. It is a free, open-source tool based on the ASM bytecode manipulation
> framework <http://asm.objectweb.org/> and concurrency utilities backported
> to Java 1.4<http://dcl.mathcs.emory.edu/util/backport-util-concurrent/index.php>
> .


HTH,
Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP key fingerprints:
* E167 E6AF E73A CBCE EE41  4A29 544D DE48 FE95 4E7E
* B693 628E 6047 4F8F CFA4  455E 1C62 A7DC 0255 ECA6

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message