Generic java bug-estimator?

There is FindBugs which does a static code analysis to find "bug patterns". That is code that falls in one of these category.

Up vote 0 down vote favorite share g+ share fb share tw.

I heard there is software available that you can feed Java-code and it gives you back an indication on where your code is likely to produce unexpected behaviour. However, I cannot find such software, nor anything resemblng this. Does anyone have an idea on where to look?

(I don't know where I heard this, so no, I cannot go back to the source and ask :( ) For example: -it might check whether the same code is found at multiple places (when editing you are likely to forget to update one of the two, hence this could give prblems in the future) -it might check whether you might be returning null somewhere where the null stays untreated, -it might check for 'magic numbers' (numbers that are used in code without being assigned to a variable), especially when these numbers appear at various places in the code. -etc, etc. (What it doesn't need to check is whether the code can be compiled. That's, ofcourse, where we have already many other tools for, like Eclipse).

I do not know for certain whether the described software exists and what it looks like, but any help in this direction would be great! Java software-tools bugs link|improve this question asked Jul 20 '11 at 7:59vdMandele645 100% accept rate.

There is FindBugs which does a static code analysis to find "bug patterns". That is code that falls in one of these category: Difficult language features Misunderstood API methods Misunderstood invariants when code is modified during maintenance Garden variety mistakes: typos, use of the wrong boolean operator It's nice to use and tends to find some bugs. However it can not do everything you want (i.e.

"returned null" checks).

Sounds like the code inspections you find in IntelliJ Idea.

These code inspections are particularly useful when used with TeamCity (CI tool). They are too slow to run them on local machine. But that is the best what is available for far.

– Stas Jul 20 '11 at 8:09.

There are a few tools like this. I've found PMD and Findbugs particularly useful.

Findbugs is one such tool. More generally, what you're talking about is called static analysis.

If you work with eclipse, you could use codepro.

Use sonar. It is a web application that has all these functionality and nice UI. Visit the site (sonarsource.org/) and see nemo - the live instance where all jakarta projects are hosted: nemo.sonarsource.org.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions