Export to GitHub

findbugs - issue #7

[Eclipse plugin] wrong classpath used to find bugs


Posted on Oct 30, 2006 by Swift Lion

AS IS: In projects, which contains more then one class folder with generated classes (say one is the default one from Eclipse, another one is temporary created by ant during deployment task) FindBugs report bugs in both folders, even if some of folders are not on the class path of the project. This lead to duplicated time used to search bugs in Eclipse and to wrong bug markers generated (or to not generated at all).

TO BE: FindBugs should search for bugs only in class folders which are on the classpath of Java project.

Using latest FindBugs build from SVN head with Eclipse 3.2.2 on JDK 1.5.

Patch (against head) which solves the problem is attached below.

Attachments

Comment #1

Posted on Nov 6, 2006 by Swift Lion

Sorry, the first patch didn't work in some special cases (if project name does not match the project folder), but here is the better one :o)

BTW is anybody watching this patches/issues page? regards, Andrei Loskutov

Attachments

Comment #2

Posted on Nov 17, 2006 by Helpful Wombat

committed your patch to SVN

Status: Fixed

Labels:
Type-Defect Priority-Medium