Is there any way to get the line number of the caller of a method in Java? I don't want to have to throw an exception. Do I have to work with stack traces? Is there any way to do this in a cheap way?
EDIT: To clarify, I don't want the line number of the caller's class. I want the exact line where the method was called.