|
|
Checking Java Programs... |
Download Example Code Order Online! List of other tools |
It's been almost twenty years since Tim O'Reilly published my little book Checking C Programs with Lint. So much has changed! In those days short books went out on paper as Nutshell Books; now they go out as Short Cuts. In those days C was the leading programming language; today Java is one of the best, with many others nipping at its heels. But one thing hasn't changed, and it hasn't changed since the days of Grace Murray Hopper: programs still have bugs. Programmers still write code with bugs. Users still find bugs in software. While Java does a lot to prevent bugs from forming (Java's garbage collection gets rid of the majority of memory allocation and deallocation bugs), it certainly does not do everything. There is still room for additional tools to help you find bugs in your software, and this book tells you about some of these tools. So. This site is about my new O'Reilly e-book in their "short cuts" series, on Checking Java Programs with Open Source Tools (working title). The book covers a number of topics but the major ones are:
I do not cover Program Testing with JUnit as there is enough coverage in that area already, include J. B. Rainsberger's excellent JUnit Recipes (Manning, 2004)). There wasn't time or room to include VerifyDesign, a tool that verifies that you aren't depending on any API that you aren't supposed to (e.g., enforces Design To Interface). VerifyDesign has its own VerifyDesign Ant Task. FindBugs += NetBeans: Bill Pugh, the prime mover of FindBugs, was kind enough to inform me that there is a NetBeans support add-on for FindBugs, though it's not from his project but rather from a third party. To get the NetBeans support for FindBugs, start at http://blogs.sun.com/charliebrown/entry/how_to_find_install_findbugs. |