Java News from Thursday, January 26, 2006

Tom Copeland has released PMD 3.5, an open source tool for automatically checking Java code for various classes of bugs. Version 3.5 adds twelve new rules including:

Some of the optimizations suggested strike me as extremely questionable, and may well be the result of naive benchmarking.

I've been doing some new work on XOM 1.2 lately, and there's quite a bit of code in the current CVS that hasn't previously been tested by this sort of tool, so I ran it on XOM. My initial runs hit some out of memory errors, so I tried it one ruleset at a time. The new rule to "Avoid concatenating characters as strings in StringBuffer.append" found a couple of places I could fix. ConsecutiveLiteralAppends only found false positives that I could see. It's a little buggy. The basic ruleset took a long time to run, but didn't find anything important. The other new rules didn't catch anything either.


Apple has posted the fifth beta of Java 5 Release 4 for Mac OS X 10.4 (Tiger) on the Apple Developer Connection (first born child required). This is based on Sun's J2SE 1.5.0_06. Most importantly it finally makes Java 1.5 the default instead of 1.4. This release is now compatible with the Intel Macs, and enables native Quartz rendering by default though this is configurable.