Oracle’s latest JDK update brings a number of enhancements to memory management, Nashorn and JavaFX that should be warmly welcomed in the Java community.
Improvements have also been made to the Java Packager Tool, which allows applications to run on systems where there is no Java runtime installed. As well as supporting multiple entry points, the Java Packager Tool’s self-contained applications can now be passed command-line arguments. Oracle explains that this means that the developer has “full control over the runtime and application entry points.”
Memory and performance
JDK 8 now allows for the amount of memory to be reduced in systems using more than one JVM. At the same time, a lambda form reduction and caching enhancement will lower the memory footprint and allow dynamic languages to perform better. The latest version of the JDK aims to create less interruptions while the system frees up memory due to a lower amount of garbage collection.
The JDK will now also respond to “memory pressure” by reducing resource demands in order to avoid Out of Memory Errors, however The Register comments that this might in fact lead to reduced performance.
MUST READ: Ten easy performance optimisations in Java
Oracle has also improved how the Native Memory Tracking diagnostic feature scales on large systems. By enabling the diagnosis of memory leaks, it is hoped that native memory can run without a significant impact on performance.
Accessibility remains a major focus for JavaFX, which is receiving a public accessibility API for developers, as well as several enhancements for Windows, Mac OS X and even the Mac App store. Oracle comments that “developers using the JavaFX media stack can now gain Mac App Store acceptance and have the opportunity to have their applications released on the Mac App Store.” The latest JavaFX changes include:
- Support for reading JavaFX controls by a screen reader
- JavaFX controls are traversable using the keyboard
- Support for a special high-contrast mode that makes controls more visible to users.
The latest release also adds JavaFX UI controls, a
spinner control, a new text formatter and a standard set of alert dialogues.
As always, the changes brought in 8u40 are explained in extensive detail in the enhancements doc.
Oracle claims the latest update will “usher in the next era of Java to enable developers and enterprises alike to cement Java’s role as the backbone of today’s and tomorrow’s revolutionary business solutions.” Meanwhile, anyone still using Java 7 should remember that Oracle will stop updating the older release in April 2015.