JDK-6731573 : diagnostic output should optionally include source line
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2008-07-30
  • Updated: 2011-05-18
  • Resolved: 2011-05-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7 b39Fixed
Related Reports
Relates :  
Relates :  
Description
The message for a diagnostic available via the JSR 199 API does not currently include the source line. That is added specially by Log.  This is for the convenience of IDEs, who probably don't want to include the source line, but it does not work well for batch clients, such as JCK. 

javac should provide an option for either behavior.

Comments
SUGGESTED FIX A webrev of this fix is available at the following URL http://sa.sfbay.sun.com/projects/langtools_data/7/6731573
09-10-2008

EVALUATION Will do. This is indeed quite trivial; I just have to move the code for printing error line from Log to AbstractDiagnosticFormatter!
26-09-2008