Difference between revisions of "Java8"

From BITPlan Wiki
Jump to: navigation, search
(Created page with "= Why Java 8 is not dead = * Because Java 9 breaks things * Because Java 10 breaks more things * Because Java 11 breaks even more things And the cost/benefit relation of movin...")
 
(Problem)
(6 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
* Because Java 10 breaks more things
 
* Because Java 10 breaks more things
 
* Because Java 11 breaks even 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.
 
And the cost/benefit relation of moving along Oracle's ideas seems not worthwile.
 +
 +
= Examples =
 +
== Mediawiki-Japi ==
 +
* [https://travis-ci.org/WolfgangFahl/Mediawiki-Japi/builds/595988729?utm_medium=notification&utm_source=email Travis build suddenly fails]
 +
=== Problem ===
 +
Oracle decided to remove APIs
 +
<source lang='bash'>
 +
Mediawiki-Japi/src/main/java/com/bitplan/mediawiki/japi/api/Page.java:[34,33] package javax.xml.bind.annotation does not exist
 +
</source>
 +
 +
=== Solution ===
 +
Do not use Oracle
 +
<source lang='yaml'>
 +
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
 +
</source>

Revision as of 10:28, 10 October 2019

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

Oracle decided to remove APIs

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

Solution

Do not use Oracle

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