Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Easy way to backport Java 6 code to Java 5?

Tags:

java

backport

We've been developing a windows based application using Java for a while now, but NOW we want to make a mac port and have to reverse of code from Java 6 and Java 5. Is there any easy way to do this rather than re-coding Java 6 specific code? We'd like to keep our code up to date.

like image 959
DyreSchlock Avatar asked Aug 20 '08 13:08

DyreSchlock


2 Answers

There are a couple of libraries out there which can help you. Unfortunately I haven't tried them myself, because I've never run into such a situation.

  • Retroweaver
  • Retrotransaltor
  • backport-jsr166
like image 182
dlinsin Avatar answered Oct 21 '22 16:10

dlinsin


See here:

http://en.wikipedia.org/wiki/Comparison_of_backporting_tools

I tried retrotranslator from 1.6 to 1.4.2 and it works pretty well!

like image 41
Davide Avatar answered Oct 21 '22 16:10

Davide