Java : Is there a tool to make code (in a 3rd party JAR) forward compatible (1.4 - 1.6)

前端 未结 3 1009
不思量自难忘°
不思量自难忘° 2021-01-15 22:03

I have a 3rd party JAR file that is compiled using Java 1.4. Is there a tool that can make the jar file compatible with Java 1.6? (Something like \'retrotranslator\' but wha

3条回答
  •  抹茶落季
    2021-01-15 22:21

    I had another issue with some legacy code written in Java 1.4.x: the authors loved enumerations and loved to name the corresponding variables 'enum'. They even used it for package names. And this prevents from compiling the code under Java 1.5 (or higher) quite successfully.

    Changing that automatically is quite an issue.

提交回复
热议问题