-
Retrotranslator, a bytecode transformer to Java 1.4, released (9 messages)
- Posted by: Taras Puchko
- Posted on: June 27 2007 06:09 EDT
Retrotranslator 1.2.2 has been released. It allows to run Java 5 and Java 6 applications on JRE 1.4 by using either bytecode preprocessing or runtime instrumentation. Supported features include generics, annotations, reflection on generics and annotations, enums, autoboxing, for-each loop, varargs, covariant return types, formatted output, static import, concurrency utilities, and collections framework enhancements. If your application must be compatible with J2SE 1.4 Retrotranslator gives you two opportunities. First, you can develop in Java 5 and enjoy generics, concurrency utilities and other cool features. Second, you can use many great frameworks written in Java 5 like Apache Struts 2, JPA with Hibernate, JAX-WS 2.1 RI or Guice. Of course Retrotranslator does not support 100% of Java 5 API out of the box but it can easily be extended with new classes and methods.Threaded Messages (9)
- wow by Jens Kleemann on June 27 2007 08:38 EDT
- Which is bigger risk - upgrading JRE or transforming bytecodes? by Tim Myer on June 27 2007 19:16 EDT
-
Re: Which is bigger risk - upgrading JRE or transforming bytecodes? by Joe Fouad on June 27 2007 07:31 EDT
-
What about 5.0 to 6.0? by Guy Korland on June 28 2007 01:56 EDT
- Re: What about 5.0 to 6.0? by Taras Puchko on June 29 2007 12:54 EDT
-
What about 5.0 to 6.0? by Guy Korland on June 28 2007 01:56 EDT
-
Re: Which is bigger risk - upgrading JRE or transforming bytecodes? by Joe Fouad on June 27 2007 07:31 EDT
- Which is bigger risk - upgrading JRE or transforming bytecodes? by Tim Myer on June 27 2007 19:16 EDT
- what is your relation to RetroWeaver? by Joe Fouad on June 27 2007 10:27 EDT
- Re: what is your relation to RetroWeaver? by Taras Puchko on June 27 2007 12:42 EDT
- Interesting by Nikita Toropov on June 27 2007 10:30 EDT
- Maven Plugin by Jared Bunting on June 27 2007 17:09 EDT
-
wow[ Go to top ]
- Posted by: Jens Kleemann
- Posted on: June 27 2007 08:38 EDT
- in response to Taras Puchko
how desperate those guys must have been ... and quite desperate measure to take ... congratulations. Maybe thats the tool who will help Mac-Users like me with outdated JRE's - so when JRE 1.7 is mainstream we will likely be forced to still use the 1.6 beta. -
Which is bigger risk - upgrading JRE or transforming bytecodes?[ Go to top ]
- Posted by: Tim Myer
- Posted on: June 27 2007 19:16 EDT
- in response to Jens Kleemann
I just have to ask. What is the bigger risk here -- upgrading a customer's JRE to 1.5 or transforming bytecodes? Sun has spent so much energy ensuring backwards compatibility between versions that it seems a whole lot riskier to me to write an application with 1.5 dependencies and transform the bytecodes rather than just to run the existing 1.4 codebase with a 1.5 JVM. Am I missing the real use case for this project, aside from a customer who needs some education in risk management? -
Re: Which is bigger risk - upgrading JRE or transforming bytecodes?[ Go to top ]
- Posted by: Joe Fouad
- Posted on: June 27 2007 19:31 EDT
- in response to Tim Myer
you cannot convince a customer who spend 30 000 USD for a appserverlicense to switch his vm to 1.5 where the vendor says it is supported on 1.4 vm -
What about 5.0 to 6.0?[ Go to top ]
- Posted by: Guy Korland
- Posted on: June 28 2007 13:56 EDT
- in response to Joe Fouad
The former RetroTranslator versions was able to translate code to 1.4. One of the most interesting feature was the replacing of the concurrent package with backport package. But this might yell performance issues when used on jvm 5.0. Does the new version support 6.0 to 5.0 translation? -
Re: What about 5.0 to 6.0?[ Go to top ]
- Posted by: Taras Puchko
- Posted on: June 29 2007 12:54 EDT
- in response to Guy Korland
This version does support the -target 1.5 option but there's no runtime library for this target. So you have to provide your own backported libraries via the -backport option. -
what is your relation to RetroWeaver?[ Go to top ]
- Posted by: Joe Fouad
- Posted on: June 27 2007 10:27 EDT
- in response to Taras Puchko
i think it is the first project to address this issue? are yours a fork,a complete rewrite ,or a new code base?why to write a new module for the same purpose of another with the same opensource license? -
Re: what is your relation to RetroWeaver?[ Go to top ]
- Posted by: Taras Puchko
- Posted on: June 27 2007 12:42 EDT
- in response to Joe Fouad
Retrotranslator has a completely different code base. Almost two years ago we were successfully using Retroweaver until we started to use annotations. At that time Retroweaver was written using BCEL that had not been able to parse them. So we wrote a simple tool with ASM just to support annotations. After a time the tool evolved and we decided to make it open source. -
Interesting[ Go to top ]
- Posted by: Nikita Toropov
- Posted on: June 27 2007 10:30 EDT
- in response to Taras Puchko
Potentially very useful tool for us, but I'm slightly worried with limitations, possible runtime problems and incapabilities. It worth a try though. -
Maven Plugin[ Go to top ]
- Posted by: Jared Bunting
- Posted on: June 27 2007 17:09 EDT
- in response to Taras Puchko
FYI...for those who use Maven, there is a plugin for performing some simple Retrotranslator tasks here: http://mojo.codehaus.org/retrotranslator-maven-plugin/