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

后端 未结 14 736
孤城傲影
孤城傲影 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:49

    The semantics of the memory model changed from 1.4 to 1.5. It was changed to allow besides other things double checked locking again. (I think volatile semantics were fixed.) It was broken.

提交回复
热议问题