Java8

From BITPlan Wiki
Revision as of 17:35, 30 December 2019 by Wf (talk | contribs) (→‎Examples)
Jump to navigation Jump to search

Why Java 8 is not dead

  • Because Java 9 breaks things
  • Because Java 10 breaks more things
  • Because Java 11 breaks even more things
  • Because Java >=12 will surely break more of the stuff that has been working perfectly for years

And the cost/benefit relation of moving along Oracle's ideas seems not worthwile.

Examples

Mediawiki-Japi

Problem

Mediawiki-Japi/src/main/java/com/bitplan/mediawiki/japi/api/Page.java:[34,33] package javax.xml.bind.annotation does not exist

Diagnosis

Oracle decided to remove APIs

Solution

Do not use Oracle's Java - stay with Version 8

diff --git a/.travis.yml b/.travis.yml
 # this is a java project using maven
 language: java
+# make sure things keep working see http://wiki.bitplan.com/index.php/Java8
+jdk: openjdk8

Crashing Eclipse

Why are people forced on non -working stuff like this: