Is it possible to get the line number of an method using reflection or other magic?
It is possible if the method is inside the current Stacktrace. Using Thread.c
You can't get a line number from a Method because you don't know what method this applies to. A method can call any sub-class of the the one you chose.