Skip to main content

Java News

April 17, 2014 -

[article] With so much happening around the Java platform, it’s understandable if you missed the recent improvements we made to the Secure Coding Guidelines for Java SE. In January 2014 the Java Platform Group released a significant update, Java 7 Update 51 establishing code-signing as the default for Applets and Web Start applications. In March 2014, we hit another major milestone with the long anticipated release of Java SE 8. There are a number of improvements to the Secure Coding Guidelines for Java SE...

April 17, 2014 -

[article] A few days ago the second beta of Groovy 2.3 got released. One of the major new Groovy 2.3 features are traits. A trait is a reusable set of methods and fields that can be added to one or more classes. A class can be composed out of multiple traits without using multiple inheritance (and therefore avoiding the diamond problem). The following piece of code shows a basic definition of a trait in Groovy 2.3...

April 17, 2014 -

[article] Rakuten is one of the largest e-commerce platforms in Japan and perhaps the world. They chose GlassFish to form a core of their extensive (24 X 7) platform (they also use Oracle Coherence). Makito Hashiyama, the lead for the Rakuten marketplace platform shared their adoption story at the JavaOne 2013 Sunday GlassFish community event - check out the video below...

April 16, 2014 -

[article] I just lOvE new toys, and Java 8 has a bunch of them. This time around I want to talk about one of my favourites – concurrent adders. This is a new set of classes for managing counters written and read by multiple threads. The new API promises significant performance gains, while still keeping things simple and straightforward....

April 16, 2014 -

[article] In this interview (originally published in German in Eclipse Magazine), Martin Lippert, Principal Software Engineer at Pivotal Inc talks about the latest Java release, and the ups, downs, and aspirations of Eclipse IDE development. JAX: What are the highlights of Java 8 for you? Lippert: The special highlight for me in Java 8 is certainly the lambda expressions. With them, code can be written simpler and clearer and many of the troublesome Inner classes are finally gone...

April 15, 2014 -

[article] As a UI framework developer it is part of my job to provide ways to customize the appearance and behavior of my controls. In many cases this is done by allowing the framework user to register a factory on a control. In the past I would have created a factory interface for this and provided one or more default implementations within the framework. These things are done differently in JavaFX and...

April 15, 2014 -

[article] One of the first things many developers new to Java learn about is Java's basic primitive data types, their fixed (platform independent) sizes (measured in bits or bytes in terms of two's complement), and their ranges (all numeric types in Java are signed). There are many good online resources that list these characteristics and some of these resources are the Java Tutorial lesson on Primitive Data Types, The Eight Data Types of Java, Java's Primitive Data Types, and Java Basic Data Types...

April 15, 2014 -

[article] CDI events are a very powerful feature that enable loose coupling in a very simple and type-safe way. One aspect of CDI events that surprises many folks is the fact that they are synchronous rather than asynchronous. The surprise is perhaps fairly natural as similar event systems are usually asynchronous. Piotr Nowicki explores the issue in a very well thought out post exploring the various options for making CDI events asynchronous using plain Java EE features such as...

April 14, 2014 -

[article] Attention to new features in JDK 8 has rightfully been largely focused on new language features and syntax. However, there are some nice additions to the libraries and APIs and in this post I cover four new methods added to the BigInteger class: longValueExact(), intValueExact(), shortValueExact(), and byteValueExact(). All four of the newly introduced "xxxxxExact()" methods throw an ArithmeticException if ...

April 14, 2014 -

[article] "We love working with JDBC" Said no one. Ever. On a more serious note, JDBC is actually a very awesome API, if you think about it. It is probably also one of the very reasons Java has become the popular platform it is today. Before the JDK 1.1, and before ODBC (and that’s a very long time ago), it was hard to imagine any platform that would standardise database access at all. Heck, SQL itself was hardly even standardised at the time and along came Java with JDBC, a simple API with only a few items that you have to know of in every day work......

November 17, 2013 -

I have often wondered, why the team around Brian Goetz has been heading towards a “decent compromise” so strongly from the beginning, both from a marketing AND technical point of view, instead of adding more boldness to how Java 8 is advertised. At Devoxx Belgium 2013, Brian Goetz seems to have really sold his accomplishments completely under value...

November 14, 2013 -

The Raspberry PI and Leap Motion hands-on labs at Devoxx 2013 started with a packed room, we even had to fetch additional chairs for people standing in the back. Vinicius and Yara senger explained their super useful embedded devices panel where many sensors and boards can be accessed through easy REST URLs. After my quick overview of the Leap Motion controller, the attendees could experiment with all available devices and...

November 14, 2013 -

The relational key is a little piece of event type attribute metadata on the form of an URI. It is normally used as a marker to hint to JMC that it often makes sense to find all events (of different event types) with the same attribute value for attributes with the same relational key. For example, the Java Flight Recorder has a lot of different GC events. almost all of them related to a certain GC ID. It often makes sense to find all events related to the same GC ID. The picture below lists some common GC events, and their attribute metadata...