Upgrade from Java 1.4 to Java 6 se
•
Java
I am currently upgrading from Java 1.4 to Java 6 se Some methods and classes have been deprecated or there have been numerous warnings due to inefficiency I want to know if I can upgrade without making any changes to the code and fix the errors after remote debugging If there is a simpler or more effective method, please share
Solution
The usual approach is:
>Run the code with a new compiler > fix any compilation errors (which may be fun in some rare cases, such as when you use the word enum as an identifier, which is a keyword for Java 1.5 and later) > execute a complete QA loop to verify that your application is still working properly
In addition, you should consider upgrading to Java 7 – Java 6 is already in its end of life phase
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码