Old projects compatible with Java 7

后端 未结 5 1278
迷失自我
迷失自我 2021-02-14 01:38

My old projects use Java 6 (1.6), and I don\'t know when I update (Java 7), they can run fine ?

5条回答
  •  别那么骄傲
    2021-02-14 02:11

    There shouldn't be any compatibility differences as the JVM is basically the same. However it is early days so there may be subtle differences which cause a problem which people are not yet aware of.

    e.g. Eclipse looks at the Supplier in the java.exe on Windows and sets the command line arguments differently for different suppliers. It has a problem with Java 6 update 22 because Oracle wanted to change it from "Sun" to "Oracle". I believe this has been changed so it is "Oracle" in Java 7 (but still "Sun" for Java 6)

    My point being, that if you write generic Java code, you shouldn't have a problem. However, if you are doing something a bit unusual, you are likely to need to re-test your application.

提交回复
热议问题