FindBugs false positives

View: New views
2 Messages — Rating Filter:   Alert me  

FindBugs false positives

by Joern Huxhorn :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi everybody.

The attached zip contains two classes which provoke false positives in
findbugs 0.9.4.

OuterClass.java triggers IMA even though the variables in question are
only read. It also contains a questionable ES.
ResourceExample.java contains several UI (unsafe inheritance not user
interface ;) ) examples. The current detector does only show one warning
(the first) per class. My example also shows some cases that should not
trigger UI but are triggering right now.

See the javadoc of the classes for more specific infos.

I hope that helps.

Regards,
Joern.


_______________________________________________
Findbugs-discuss mailing list
Findbugs-discuss@...
http://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss

falsepositives.zip (2K) Download Attachment

Parent Message unknown Re: FindBugs false positives

by Joern Huxhorn :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

dbrosius@... wrote:
> In the case of IMA, the issue isn't a write vs. a read one. Here's is the
> generated code for the method 'aMethod': (not the use of the invokestatic
> calls to an access$000 method)
>  
Ah, ok, I understand... my problem was the short description of the bug:
"IMA: Method xxx writes to a private member variable of owning class"

The bug details explain the problem correctly, though.
I think the short description should probably be changed to "reads or
writes" instead of just "reads".


Thanks, Joern.

_______________________________________________
Findbugs-discuss mailing list
Findbugs-discuss@...
http://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss