Welcome to Software Ninja blog - your ultimate destination for mastering software development and data manipulation. Explore cutting-edge techniques and expert tips to sharpen your coding skills and become a data virtuoso. Let's embark on a journey of discovery together!
Tuesday, October 16, 2007
Retrotranslator
Retrotranslator is a Java bytecode transformer that translates Java classes compiled with JDK 5.0 into classes that can be run on JVM 1.4.  Of course there is a Maven plugin.  
I needed to do some unit testing of some code that uses JavaMail.  Poking around I found mock-javamail that does just that.  However, it is written in Java 5 and I am stuck in the prehistoric world of Java 1.4.
At first, I converted the code to 1.4 but that leaves 2 different code bases.  Then I was pointed at retrotranslator that would give a 1.4 compatible jar from 1.5 source.  One code base.  Nice.
Subscribe to:
Post Comments (Atom)
 
 
No comments:
Post a Comment