|
Quick Lists
|
|
Bug ID:
|
6730423
|
|
Votes
|
0
|
|
Synopsis
|
Diagnostic formatter should be an instance field of JCDiagnostic
|
|
Category
|
java:compiler
|
|
Reported Against
|
|
|
Release Fixed
|
7(b34)
|
|
State
|
10-Fix Delivered,
request for enhancement
|
|
Priority:
|
3-Medium
|
|
Related Bugs
|
6492019
|
|
Submit Date
|
28-JUL-2008
|
|
Description
|
Each diagnostic should store its own diagnostic formatter as a non-static field. Currently the formatter is a static field of JCDiagnostic. This forces the code in JCDiagnostic to go through an inelegant static factory method in order to initialize and retrieve the diagnostic formatter associated with the JCDiagnostic class each time it is used.
It would be much better to let the diagnostic factory set the diagnostic formatter on each newly created diagnostic customer . This requires, as a side-effects, that all diagnostic objects are indeed created through a diagnostic factory, and that all occurrences of static factory method JCDiagnostic.framents are removed from the compiler.
Posted Date : 2008-07-28 11:42:52.0
|
|
Work Around
|
N/A
|
|
Evaluation
|
Will do
Posted Date : 2008-07-28 11:42:52.0
|
|
Comments
|
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|
|
|
 |