Core Java

Java 8 news

The first release candidates of Java 8, b128 and Java 8 RC2 showed up on February, fixing a serious flaw in the new Comparator API, where its new thenComparing() method had an unnecessary type restriction. The thenComparing() method of java.util.Comparator does not require that type U extend java.lang.Comparable, since keyComparator is used to compare extracted key objects. Java 8 RC2 release also fixed a read permission issue on Mac OS X.

A few thoughs about the new release that is coming on March are presented in Java 8 News: Release Candidates Available, New Atomic Numbers and Stripped Implementations Dropped.

New Atomic Number Implementations

Apart from Java 8’s Lamdas and new Date and Time API, the atomic number implementations are very important. According to Drew Stephens, Principle at Palamino Labs, Java 8’s atomic number implementations are quite faster. The LongAdder and DoubleAdder are proved to be less flashy, but very important to certain classes of multithreaded applications. They are atomic Number implementations that provide superior performance to AtomicInteger and AtomicLong when under contention from multiple threads.

As Drew showed, AtomicLong may be a bit quicker with single threads, but as threads’ number rises LongAdder becomes much quicker.

Stripped Implementations Dropped

Stripped implementations is a proposed feature for Java 8 that allows customized implementations of Java SE to be packaged with applications that run on it. Mark Reinhold has proposed that Stripped Implementations could be dropped from Java SE 8. As he explained the Stripped Implementations feature of Java SE 8 requires some nontrivial changes to the TCK license, that will take a lot of time. So they could drop the Stripped Implementations feature from Java SE 8. This will only require changes to the Specification and to the TCK rules. Though, he believes that Stripped Implementation is important to the future of the Java platform, and that’s why it should be added in a release prior to Java SE 9.

Theodora Fragkouli

Theodora has graduated from Computer Engineering and Informatics Department in the University of Patras. She also holds a Master degree in Economics from the National and Technical University of Athens. During her studies she has been involved with a large number of projects ranging from programming and software engineering to telecommunications, hardware design and analysis. She works as a junior Software Engineer in the telecommunications sector where she is mainly involved with projects based on Java and Big Data technologies.
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Inline Feedbacks
View all comments
Back to top button