Name: rmT116609 Date: 04/29/2004
A DESCRIPTION OF THE REQUEST :
Depending on the setting of the -g switch during compile-time, none, some or all debugging information is included in the class-file. depending on this amount of information available, the JVM can produce a more or less usefull stacktrace
when a Throwable is created.
Current implementations (1.3 upto 1.4.2) fill in the line-numbers of the source-
location, when the source-file AND the line-numbers are included - when the name of the source-file is missing, no line-numbers are output. ( -g:lines )
The full class- and method-name is always given.
Because typically the classname is very close related to the java-sourcefile,
this information can be sufficient for a useful stacktrace - even when the
sourcefile-name is not included in the class-file.
JUSTIFICATION :
The proposed change in the stacktrace-formatting allows slightly less informative (no source-filename, but class+method+linenumber) stacktraces with slightly smaller classfiles. The programmer can fully decide the degree of verbosity with the -g compiler-switch.
(Incident Review ID: 210009)
======================================================================