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

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


  • Posts

    • This is L2Etina’s first opening under our new team, and it’s off to a great start! We’re thrilled with the strong player turnout, the warm feedback, and your response to the major updates. We’re continuing to improve the server and would love to see you in game! ⚔️
    • I dont sell anything and i got scammed kiddo, if you noticed rookie just scammed me and blocked me. so asking this make you immature.
    • @Maxtor @Dragic @Celestine Why you unban this rat, it's will give very negative review if you will try sell something or provide service this very actually should be for @Dragic and his L2Forge sales.
    • Αχ ναι; τοτε γιατι με παρακαλουσες για κωδικες και οτι σου εδινα ελεγες τελεια και wow σαγαπαω? Ε ψευτρακο; Γιατι οτι πηρες λειτουργει οπως το ηθελες ακομη και σε λεπτομερεια που κανας αλλος θα σου ελεγε αντε κ γα*?   Σε τσουξανε οι τιμουλες μου στη τσεπουλα σου; κ βρηκες κανα new chatgpt dev? Φτωχομπινε του κερατα που κανεις παζαρια για 40-50 ευρω κωδικες.   Δεν ασχολουμε αλλο απλα ενημερωνω @Celestineτο παιδακι χρωσταει λεφτα για κωδικα που ελαβε και λειτουργει και το επιβεβαιωσε και με μπλοκαρε κ ολας. Ban η οχι δεν ασχολουμε αλλο. καλη τυχη 
    • den tha asxolithw allo mazi sou randoma,kserei olo to forum ti  eisai
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..