JavaWeekly 19/15: Jigsaw, Java8 concurrency, vJUG book club
From the pitfalls of Project Jigsaw to a new club for Java bookworms, this latest edition of Thorben Janssen’s Java Weekly brings us this week’s hottest links, tutorials and updates from the Java world.
This post originally appeared on Thorben Janssen’s Java EE blog, where Java news is published weekly: thoughts-on-java.org.
Project Jigsaw will be part of Java 9 and introduce modularization to the Java platform. While this will provide lots of benefits, there are also some drawbacks, e.g. it may break your existing code. Nicolai Parlog had a look at the upcoming changes and explains which might bring some problems to existing applications.
Benjamin Winterberg published the second post of his Java 8 concurrency tutorial. This time, he shows how to use synchronized, different kinds of locks and Semaphore to work with shared variables.
One of the bad things of the ExecutorService is, that it wraps the submitted Callable or Runnable into a FutureTask without providing a way to get it back. Heinz Kabutz shows in his recent Java Specialists Newsletter how to use reflection to extract the original Callable or Runnable.
Do you know javax.ws.rs.core.Response.Status.Family? I didn’t know about it, until I read a recent post by Adam Bien. This enum provides a very comfortable way to check the result code of a webservice response against a family of result codes.
The @Context annotation in JAX-RS can be used to access various context related information of a REST service call. Abhishek Gupta provides some useful examples for it in his recent post: Using @Context in JAX-RS [ part 1 ].
This and that
The vJUG has started a book club. The general idea is, that the members agree on a book and read it within a defined time frame. Afterwards it will be discussed in one or more vJUG session. The first book is “Effective Java” by Joshua Bloch and it will be discussed in 3 sessions. If you want to take part in the group, get your copy and read the first 100 pages before the first session.