Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by ericSedor

  1. ericSedor

    calling class's name while in called method?

    thanks for the update, I did not realize that the Sun package was not supported. I'll switch over.
  2. ericSedor

    calling class's name while in called method?

    Here are two snippets: import sun.reflect.Reflection; String callerName = Reflection.getCallerClass(2).getName(); I found the answer right after I typed the earlier question in http://www.javaspecialists.eu/archive/Issue087.html fyi. Maybe someone else will find it useful, thanks.
  3. ericSedor

    calling class's name while in called method?

    how do I get the class name of the calling class while in the called class's method? I'm seeking to put this name in a new log message based upon some validation results that will be performed in the called method. I cannot change the interface easily so I am trying to figure out how to...

Part and Inventory Search

Back
Top