Jump to content

Recommended Posts

Posted

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?

Posted

long stuff, you have mostly to upgrade your libs sad if u dont have the sources

then opts are extra

Posted (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 by Tryskell
Posted
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

Posted
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock