Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Method trace

 
krishna pradeep
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ours is a big project. i have a method named getConnectionRDD() in DBConnectionManager.java. 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.........
 
Panav Kumar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Anu Pillai
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic