COJAC, A Numerical Problem Sniffer

Java Logo

During my bachelor at the HES-SO University of applied sciences in Fribourg, I worked on a Java project, COJAC.COJAC is a tool performing On-the-fly code instrumentation to help uncover numerical problems with integer (overflows) and floating … [Read more...]

Java 7 has been released!

Duke Cowboy Java

Five years after Java 6, Oracle has just released Java 7!This is the first release of Java since Oracle bought Sun Microsystems.This new version of Java introduces a lot of new features, but some of the languages new features will be … [Read more...]

JTheque Core 2.1.0 released !

Hi,It's my pleasure to announce that I've finally released JTheque Core 2.1.0 !The different services of the core are now separated using OSGi. With this separation, I've improved a lot the design of the core and the orthogonality of the … [Read more...]

Compute command-line arguments with Apache Commons CLI

For a project at school, I needed to refactor an old code parsing almost 30 command line arguments. I needed to add some more arguments and change some old args, but the old code was not maintainable at all. So I decided to use a library to make the … [Read more...]

Swing tip : A better SwingWorker without exception swallowing

Duke Tubbing

When we develop Swing applications, SwingWorker are very helpful. But there is a big disadvantage using this class. if you don't call get() in the done method, you will lose all the exceptions that the computation in the doInBackground() has thrown. … [Read more...]

JDK 7 Features updated ! Plan B has apparently been approved

OracleStratSmall

I was presenting the Plan B of JDK 7 the last week and apparently, this plan has been approved.The JDK 7 Features page has been updated on the site of Oracle.So here are the (definitive ?) list of features for JDK 7 :JSR 292: Support for … [Read more...]

JTheque Utils 1.1.5

Java Logo

Hi,It's my pleasure to announce the release of a new version of JTheque Utils, the 1.1.5.There is a lot of changes in this version. First of all, the library is now OSGi Ready, you can use it with no problem in an OSGi application. Here are … [Read more...]

Java Concurrency – Part 7 : Executors and thread pools

Duke Cowboy Java

Let's start with a new post in the Java concurrency series.This time we'll learn how to start cleanly new threads and to manage thread pools. In Java, if you have a Runnable like this :You can easily run it in a new thread :This is … [Read more...]

Java 7 Delays and Plan B

Duke Java Logo

Mark Reinhold has posted a message about the planning of Java 7. In this message, he explains that the current schedule of the JDK 7 is completely unrealistic. This delay is due to the add of new projects (lambda, Coin, Jigsaw) and the acquisition of … [Read more...]

Java Concurrency – Part 6 : Atomic Variables

Duke Cowboy Java

When a data (typically a variable) can be accessed by several threads, you must synchronize the access to the data to ensure visibility and correctness.By example, if you have a simple counter (yes, once again) :This class works really … [Read more...]