«« Next » « Previous
«« Next » « Previous

Link Details

Your vote is your voice. Use your voice. Login and vote now.
Link 102039 thumbnail
User 111696 avatar

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.
  • 1
  • 0
  • 69
  • 8

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (1)



Voters Against This Link (0)