21 March 2018

Nobody uses Maven
Maven  uses you

   Venkat Subramaniam

Java 10 released, codename "boring"

With a release 10, you'd expect some jubilee fanfare and marketing blitz. At least they could have waited one day to launch at march 21 for spring (maybe that term is too much associated with another java ecosystem).
But it's axe time for Java at Oracle, so this is the most under cover release ever. At the java SE download page you have to dig deep for anything coming near to a decent what's new presentation.
To be fair, this is also related to increased release frequency that was introduced for Java. Like many platforms these days, java will be released on fixed time points with whatever is ready at that moment. The first release in such a system is always a bit underwhelming, think of EcmaScript 2016, for example.

The one big addition in Java 10 is the introduction of var declarations for local variables. If the compiler can infer the type of a local variable from the initialisatioin, you don't have to type it anymore. So Java 9 code

  ArrayList<String>list = new ArrayList<>();   
  Stream<String> stream = list.stream(); 
can in Java 10 be written as 
  var list = new ArrayList<String>();
  var stream = list.stream();
Always takes a bit of getting used to, but I think the older syntax is clearer. You'll start seeing plenty of code, where the classes being used are not clear for somebody that is less familiar with the API being used. They will not even be present in the import statements.

Some other enhancements:
  • inclusion of root CA certificate
  • Graal compiler as an experimental option

We mentioned axe time: so with this release stuff is effectively getting removed and being marked for removal. One remarkable removal is the desktop policytool. It is replaced by your favourite file editor.

19 March 2018

Oracle will remove Java FX from JDK

Oracle released a Java Client Roadmap Update.
Starting with JDK 11 Oracle plans to remove its little used Java FX desktop libraries from the JDK. Java FX will live on in the OpenJFX, which was created in 2011.
Java Webstart will also be removed from JDK 11.
Swing and AWT remain part of JDK 11.
Just as it handed over Java EE to Eclipse, it is looking to transfer  stewardship of Java FX, Swing and AWT to another party.
With java 9's project Jigsaw, Java became a modular system, making a separation of this part of Java easier.
As a consequence the JDK will become leaner and Oracle hopes to evolve it at a faster pace in the future.

Java EE becomes Jakarta EE

With the move of Java Enterprise edition from Oracle to the Eclipse foundation, Oracle did not transfer the right to use the Java brand.
The reference implementation will still be Glassfish, which now becomes Eclipse Glassfish.
The standard governance will move from JCP to the Eclipse EE.next  Working Group.