Hudson's FindBugs plugin reports line number "-1" for bugs. Ideas?
Posted
by John B.
on Stack Overflow
See other posts from Stack Overflow
or by John B.
Published on 2010-04-14T17:37:56Z
Indexed on
2010/04/14
17:43 UTC
Read the original article
Hit count: 169
Greetings,
I have a simple test project set up in Hudson and the project's build process (a batch file) generates a findbugs.xml file. This is processed by Hudson's FindBugs plugin but it shows the line number of the bugs as "-1" instead of their actual line number. A coworker suggested I enable debug info for the compiler. I used the -g "Generate all debugging info" option for javac but nothing seemed to change. My build command is:
javac -g -classpath C:\testWebApp1\src -d C:\testWebApp1\build C:\testWebApp1\src\*.java
The only other thing in the build.bat file is a call to the FindBug tool (text UI). Here is what the FindBugs Plugin says about the first bug:
File: GenerateHellos.java, Line: -1, Type: UUF_UNUSED_FIELD, Priority: Normal, Category: PERFORMANCE
Any ideas? Thanks a ton!
© Stack Overflow or respective owner