Preemptive Error Detection with FindBugs
-
Upload
guo-albert -
Category
Technology
-
view
1.454 -
download
2
Transcript of Preemptive Error Detection with FindBugs
Agenda
• What is FindBugs
• Bug Categories
• How to use FindBugs
• Bugs Detection Process
• FindBugs Analysis Report
What is FindBugs
• FindBugs uses the Apache BCEL library to analyze the classes in your application and detect potential bugs.
• FindBugs rules (or "detectors") use a variety of inspection techniques, from examining the structure of the class right through to studying the detailed dataflow through the class.
• In addition to the detectors provided by FindBugs, with a bit of work, you can write your own custom-built detectors.
• http://findbugs.sourceforge.net/
Bug Categories
Bug Categories – cont.
How to use FindBugs
In practice, the standalone application is rarely used: developers prefer to be able to invoke FindBugs directly from within their work environment.
In practice, the standalone application is rarely used: developers prefer to be able to invoke FindBugs directly from within their work environment.
Bugs Detection Process http://findbugs.sourceforge.net/
Execute ant scriptExecute ant script
Bugs Detection Process – Author Ant Build Script
projectFile can be generated via GUI tool.http://0rz.tw/584k0 Get further info: http://0rz.tw/ed4mX
projectFile can be generated via GUI tool.http://0rz.tw/584k0 Get further info: http://0rz.tw/ed4mX
Build.xml
Attach.Attach.
Bugs Detection Process – Generate Bug Reports
….
FindBugs Analysis Report
FindBugs Analysis Report – cont.
FindBugs Analysis Report – cont.