Two Laptop Bag
The moose likes Java in General and the fly likes Method trace Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Method trace" Watch "Method trace" New topic

Method trace

krishna pradeep

Joined: May 24, 2006
Posts: 25
Ours is a big project. i have a method named getConnectionRDD() in Now i want the method name and class name of all the methods that were calling getConnectionRDD(). My code change needs to be in getConnectionRDD(), since i cannot do the code change in calling component. Please help me.........

Pradeep<br /> <br />SCJP 1.4, SCWCD 1.4 , SCBCD 1.3
Panav Kumar

Joined: Dec 26, 2006
Posts: 3
If you are using eclipse IDE then you can search for your method and it will show you all methods and class name where your method is in use.

Pranav Kumar
Anu Pillai

Joined: Oct 09, 2006
Posts: 28
If you are using Eclipse IDE, then take the class where you have defined the method. Select the name of the method, and right click, you will get an option 'references', inside that choose project, and Eclipse will list all the methods which are calling this particular method.
I agree. Here's the link:
subject: Method trace
It's not a secret anymore!