Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / August 2005

Tip: Looking for answers? Try searching our database.

static source code analysis & code coverage tools

Thread view: 
bill turner - 19 Jul 2005 19:54 GMT
Hi All,

I am wondering if anyone has any experience, can recommend, any open
source publicly licensed source code analysis and code coverage tools,
such as PMD, jester and jlint. I am definitely open to hearing about
any and all, so please do not limit your reply to just the
aforementioned tools.

For both source code analysis and code coverage tools, I am interested
in:
1) how well they seemed to work
2) how well they integrated with the ide (if intended to do so)
3) how well they integrated into build tools (ant, cruise control)
4) how easy it was to understand the reporting.
5) For the source code analysis, I am especially interested in anything
you say about the complexity measures performed.

I've found a few websites listing several such tools but don't have the
time to research them all. Here are the websites I found:
http://www.oneclipse.com/plugins/analysis-plugin-topic/topic_view
http://java-source.net/open-source/code-coverage
http://java-source.net/open-source/code-analyzers

As for my requirements, they are fairly nebulous. I have just joined a
team, fairly new itself, which has the mandate to improve application
performance and stability across the enterprise. I am concentrating
initially on the mid tier. We are installing a tool
called Introscope to monitor the applications. However, since I have
long had an interest in quality and process, it seems the best place to
make long term improvements is before application deployment. I also
feel that static source code analysis, especially complexity measures,
could be used to identify potential hot spots, spots that I could make
sure are probed via Introscope. Since I am part of the enterprise team
and we are rolling this out to other teams, I was hoping to demonstrate

such a tool to the application in areas in this capacity while
mentoring, then suggest that it be incorporated into eclipse and ant. I
was hoping they would see the benefit of source code analysis. I would
also, in the same breath, recommend code coverage tools and maybe even
beautifiers so that all the source code would have the same feel. Some
of this may have to wait for a second phase when we are concentrating
more on process rather than the current fires. My purpose in asking for
recommendations should be obvious.

This also brings up the larger topic of whether or not people find
complexity measures useful. It is my belief, and I only have anecdotal
information to support this, that complex code has a higher propensity
for failure. Don't we all believe this to be true?

Likewise, it seems that code coverage tools should be useful. Then
again, they could be overkill and may bring development to a crawl.

Any feedback that can be provided to short-circuit the testing of such
tools is truly appreciated!

TIA

bill
Denis Gurchenkov - 20 Jul 2005 07:22 GMT
Take a look at

http://www.excelsior-usa.com/fd.html

This is a static analysis tool for Java. Note it is not free, although
not so much expensive.

Denis
Ira Baxter - 23 Jul 2005 18:46 GMT
> Hi All,
>
[quoted text clipped - 11 lines]
> Likewise, it seems that code coverage tools should be useful. Then
> again, they could be overkill and may bring development to a crawl.

Well, not for free (it sounds like you should be interested in quality
enhancement, not freeness) but designed to handle large-scale codes with low
overhead, see:
    www.semdesigns.com/Products/TestCoverage/JavaTestCoverage.html

A different type of static analysis you might find interesting is "clone
detection",
which finds code that people have copied/pasted/edited.  Maintaining
duplicates
is expensive.  You can get a Java Clone detector demo for free from:
   www.semdesigns.com/Products/Clone

Signature

Ira D. Baxter, Ph.D., CTO   512-250-1018
Semantic Designs, Inc.      www.semdesigns.com

p_murugavell@hotmail.com - 08 Aug 2005 05:57 GMT
You can use Oracle JDeveloper, but this is not open source. It is the
complete suite for design, development and performance analysis.
Now this has become free tool.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.