Your vote is your voice. Use your voice. Login and vote now.
By bloid
via blogs.sun.com
Submitted: Aug 08 2008 / 14:06
The entry-point for the diagnostic system is the Log class. Log is used for reporting errors, warnings, notes, etc. throughout the whole compiler pipeline. When an error is reported to the Log class, the Log keep track of that by creating a new diagnostic object, whose contents are then printed to the output stream by means of a DiagnosticFormatter object. A diagnostic object is used for keeping track of several information about a given diagnostic, such as the message key (a locale independent string), the position in which e.g. the error occurred, the source file containing the error, and a list of arguments that can be used for parameterizing the contents of a given diagnostic.
Add your comment