News: PMD 3.6, source code evaluation for Java, released
PMD 3.6, a tool that scans Java source code and highlights potential problems, has been released. The biggest new feature is support for checking JSP and JSF code; thanks to Pieter Vanraemdonck for implementing this. He and Allan Caplan also wrote eight rules to get this capability rolling.
- Posted by: Tom Copeland
- Posted on: March 29 2006 11:06 EST
There are a flurry of bug fixes, including a major memory leak fix, and there are five new rules and improvements to many of the current rules. The full changelog is online, as well as the downloadable release.
Thanks to Pieter, Allan, Wouter Zelle, Paul Smith, Didier Duquennoy, David Corley, Jeff Jensen, Christopher Stach, Mathieu Champlon, Jan Koops, and a host of other folks for their contributions to this release. Enjoy!
There's also a book called "PMD Applied" available for PMD users.
- Is there an Eclipse plugin for the new release? by Rick Hightower on March 30 2006 03:00 EST
- Is there an Eclipse plugin for the new release? by Guy de Pourtal??s on March 30 2006 03:34 EST
- There is no Eclipse plugin yet for 3.6 by David Ramsey on March 30 2006 11:46 EST
- Is there an Eclipse plugin for the new release? by Tom Copeland on March 30 2006 15:47 EST
- What's the problem with ThreadGroups? by Hack Kampbj??rn on March 31 2006 08:19 EST
- Does JSP support work at all??? by Daniel Palacios on April 11 2006 04:48 EDT
Is there an Eclipse plugin for the new release?
Rick Hightower (linked in),blog
JSF, Spring, and Hibernate training and consulting
Take a look at this page : http://pmd.sourceforge.net/integrations.html
There is integration within many IDEs
None of the plugins for any IDE have been rebuilt as of March 30th, 2006.
A NetBeans Plugin that uses PMD 1.6 and an updated NetBeans Module is available at:
The link towards the top of the page.
With it you can do some refactoring with PMD and not just find problems, but actually fix them.
Just kidding I might update it later. When I give in to the urge.
Hi Rick -
None of the plugins have been updated yet... should happen over the course of the next week or, probably. I'm not sure how quickly the plugin guys will integrate the JSP support since that might be a bit more work... but, we'll see..
All the description says is
Avoid using ThreadGroup; although it is intended to be used in a threaded environment it contains methods that are not thread safe.
Joshua Bloch's book "Effective Java" discusses why ThreadGroup isn't really useful, and possibly dangerous if using the deprecated methods. I don't have a copy of the book handy, however I did find a more detailed description on this page: http://www.faqs.org/docs/think_java/TIJ315.htm
I've been giving the new JSP rules in PMD 3.6 a try and I just couldn't make it work. I'm starting to think that there's a major bug in this version that prevents it from processing JSPs.
I wrote a JSP file that should result in a bunch of errors (I actually copied the examples that trigger the rules from the documentation) but to no avail.
I can see that the JSP gets parsed (since the process fails when I make my JSP non-XHTML) and that the rules gets loaded (thanks to the -debug option), but for some reason I always get a no-errors report (using both an ant script and from the command line with the -jsp option).
Is there something I am missing?
Thank you very much,
Dani Palacios, Java developer