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 (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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...