Name: boT120536 Date: 02/01/2001
O:\>java -version
java version "1.2.1"
Classic VM (build JDK-1.2.1-A, native threads)
If the java compiler could have an __FILE__ and and __LINE__ capability as in C
and C++ it would be very useful. The __FILE__ macro gets replaced with the
filename. The __LINE__ macro gets replaced with the line number.
In many error and debugging messages, it is just as important where the message
came from as well as the message itself. How many times do you find yourself
grepping through files trying to find where a message came from. Although you
can get some of this info from a throwable, it is only accurrate for non-JIT
classes. The file name and line number information is lost in the JIT.
(Review ID: 116199)
======================================================================