Java News from Saturday, June 3, 2006

Tom Copeland has released PMD 3.7, an open source tool for automatically checking Java code for various classes of bugs. Version 3.7 is mostly a bug fix release that cures a number of false positives. However it does add three new rules: DuplicateJspImport PreserveStackTrace, and UseProperClassLoader.

PreserveStackTrace surprised me. Apparently when an exception is caught and a new exception is thrown, the original stack trace is lost. It isn't a major problem, but it does seem worth looking at to see if I can repair it. OK, I looked at it, and these reports all seem to be false positives. The original exception is being passed in. PMD just doesn;t recognize that because a custom constructor is used.