且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用Java 6中为Java 7编译的库?

更新时间:2023-01-14 23:16:24

这可能不工作。 Java 7引入了早期版本中不存在的语言特性,因此如果在库中使用了这些特性,您可能无法使用JDK 6重新编译。

This will probably not work. Java 7 has introduced language features not present in earlier versions, so if any of these have been used in the library you may not be able to recompile using JDK 6.

,每个Java版本都引入了新的方法和类,因此如果在库中使用了 @since 1.7 项,它们将不会出现在Java 6环境中,构建将失败。

Also, new methods and classes are introduced with each Java revision, so if any @since 1.7 items are used in the library, they will not be present in your Java 6 environment and the build will fail.