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 / November 2003

Tip: Looking for answers? Try searching our database.

Req: Tool to analyse static dependencies

Thread view: 
Stefan Bindel - 28 Oct 2003 09:56 GMT
Hi,

I am lookging for a freeware/open source tool for analysing static
dependencies in java. I want to solve especially these problems:

- find unused/uncalled methods in classes
- find unused classes in a jar

I am aware that this can only work if the code does not use reflection, but
that is ok for me.

Such a tool should not be too difficult to write. We start with one class
(user selectable), go through all symbols, and build up a dependence graph,
adding all symbols of the found classes to the lookup queue. (This is time
consuming but does not really matter for me).

But if it is so simple, then I guess another one already has done the work,
so is there such a tool?

Thanks for helping,

Stefan
Ira Baxter - 01 Nov 2003 22:59 GMT
> I am lookging for a freeware/open source tool for analysing static
> dependencies in java. I want to solve especially these problems:
>
> - find unused/uncalled methods in classes

Our Java Source browser finds all dependencies in source code
and inserts that information into JavaDoc.  If you have
a method that isn't called, its JavaDoc entry
will show the definition but no uses.
See http://www.semdesigns.com/Products/Formatters/JavaBrowser.html.
Free for modest-sized Java apps.

> - find unused classes in a jar

... ours only works on source files.

> I am aware that this can only work if the code does not use reflection, but
> that is ok for me.

Yep.

> Such a tool should not be too difficult to write.

Right :-{  You *only* need a full Java parser with name
and type resolution.   Probably easier if you work
on the Java class code.

> But if it is so simple, then I guess another one already has done the work,
> so is there such a tool?

We also have a version that will identify and optionally remove the dead
code
from the source files.  Not free.

Signature

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



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.