Are there any specific examples of backward incompatibilities between Java versions?

后端 未结 14 737
孤城傲影
孤城傲影 2020-12-02 12:28

Have there been incompatibilities between Java releases where Java source code/Java class files targeting Java version X won\'t compile/run under version Y (where Y > X) ?

14条回答
  •  情书的邮戳
    2020-12-02 12:58

    Compatibility notes for various versions:

    • Java 1.4
    • Java 5
    • Java 6
    • Java 7
    • Java 8

    The first major hiccup I remember was the introduction of assert in Java 1.4. It affected a lot of JUnit code.

提交回复
热议问题