What is RetroTranslator
To quote from http://retrotranslator.sourceforge.net/:
Retrotranslator is a tool that makes Java applications compatible with Java 1.4, Java 1.3 and other environments. It supports all Java 5.0 language features and a significant part of the Java 5.0 API on both J2SE 1.4 and J2SE 1.3. In other Java environments only the Java 5.0 features that don’t depend on the new API are supported. Retrotranslator employs the ASM bytecode manipulation framework to transform compiled Java classes and the backport of the Java 5.0 concurrency utilities to emulate the Java 5.0 API.
To be more specific, it does the following:
- It converts bytecode, making it JDK 1.4-compatible, so you don’t get any of those Unsupported major.minor version 49.0 errors.
- It provides runtime support for incompatible JDK API methods, e.g. the JDK 1.5 BigDecimal(int) constructor.
- It provides runtime support for new JDK features like annotations. Yes, you can call Class.getAnnotations() when running under JDK 1.4.