Afou To Patisa Posted September 2, 2017 Posted September 2, 2017 Hello, i wanted ask people let's say we have a project that is really old and it use java 6 or 7 and we want upgrade it to java 8 (latest). How we do this via eclipse? And if yes will this affect the java coding part? I think java 7 is included all in java 8 so it wont affect the code right? Still how we do it via eclipse?
`Son Posted September 2, 2017 Posted September 2, 2017 long stuff, you have mostly to upgrade your libs sad if u dont have the sources then opts are extra
Tryskell Posted September 2, 2017 Posted September 2, 2017 (edited) Java generally keep backward compatibility, the jump from 6 to 8 is almost nothing to do. The versus (8 to 6) is impossible without rework, if you used Java 7/8 features. Additional features introduced by higher Java versions aren't even "needed", but they are generally eye candy and/or help a lot. So basically it's not "needed" to rewrite anything. Java 7 added diamond for constructor invocations and try-with-ressources statement, while Java 8 pimped ConcurrentHashMap (and the whole concurrent package) and added lambdas and a native Base64 encryption. http://www.eclipse.org/jdt/ui/r3_8/Java7news/whats-new-java-7.html http://www.journaldev.com/2389/java-8-features-with-examples What would take a long time with a old project is the activation and fix of all warnings. L2J IL had more than 1.5k warnings without Eclipse verification, with at least 15 leaks. About your build environnement, the only thing to do is to use an Eclipse which can handle Java 8, download Java 8 and edit your project to use Java 8 instead of 6. Then errors will normally popup, if any. Edited September 2, 2017 by Tryskell
Θα Σπασω Κουπες Posted September 2, 2017 Posted September 2, 2017 32 minutes ago, Tryskell said: Java generally keep backward compatibility, the jump from 6 to 8 is almost nothing to do. The versus (8 to 6) is impossible without rework, if you used Java 7/8 features. Additional features introduced by higher Java versions aren't even "needed", but they are generally eye candy and/or help a lot. So basically it's not "needed" to rewrite anything. Java 7 added diamond for constructor invocations and try-with-ressources statement, while Java 8 pimped ConcurrentHashMap (and the whole concurrent package) and added lambdas and a native Base64 encryption. http://www.eclipse.org/jdt/ui/r3_8/Java7news/whats-new-java-7.html http://www.journaldev.com/2389/java-8-features-with-examples What would take a long time with a old project is the activation and fix of all warnings. L2J IL had more than 1.5k warnings without Eclipse verification, with at least 15 leaks. About your build environnement, the only thing to do is to use an Eclipse which can handle Java 8, download Java 8 and edit your project to use Java 8 instead of 6. Then errors will normally popup, if any. You're so cute when u try explain something but end up doing Ddos Attack by text awww <3
Tryskell Posted September 3, 2017 Posted September 3, 2017 13 hours ago, Θα Σπασω Κουπες said: You're so cute when u try explain something but end up doing Ddos Attack by text awww <3 At least I spoke about the subject. <3
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now