Compiling Java code written for 1.5 to work with 1.4 JRE?

后端 未结 4 1979
抹茶落季
抹茶落季 2021-01-05 05:21

I have a project that uses generics and a few Java 1.5/6 bits and pieces. Is it possible to compile this code to work on a system running a 1.4 JRE?

I use an ANT bui

4条回答
  •  余生分开走
    2021-01-05 06:11

    I have had good experience with Retrotranslator (retroweaver did not work well with what I was needing, cannot remember exactly what).

    It worked very well for my purpose (creating JDK1.4 versions of Logback).

    http://retrotranslator.sourceforge.net/

提交回复
热议问题