Eclipse Findbugs plugin doesn’t appear to work with libgcj9. There’s a function in gcj that isn’t implemented that FindBugs calls. Brent, what are you running Eclipse on?
–
Michael Kiefte, Ph.D.
Associate Professor
School of Human Communication Disorders
Dalhousie University
Halifax, Nova Scotia, Canada
tel: +1 902 494 5150
fax: +1 902 494 5151
At Rodney’s expense, and I am sure he is laughing just as hard as the rest of us, I am sorry to say this has to be one of the funniest threads.
However, I have to admit I do stuff like the referenced code all the time, “best days” or not! I would be quite wealthy if I only had a dollar for every time I typed ‘=’ instead of ‘==’ (that one is my personal bane of existence for whatever way my brain is miswired). And of course when the compiler does not catch stuff like that all of us who can not type worth java beans are left out to dry trying to figure out where that pesky bug is.
I think a good claim could be made that the problem isn’t in your (or
other programmer’s brains), but rather that this particular problem
is a consequence of poor programming language design.
I was always more of a fan of the Algol/Pascal convention of using :=
from assignment.
And if the languages had been designed properly, there it wouldn’t be
legal to use assignment in a context calling for a boolean value. It
should not be an expression in the C family of languages.
I just started playing with FindBugs on the weekend and I have to admit that it’s quite amazing. A lot of things I had never thought of before. What a fantastic tool.