JDK-6852649 : The Rich formatter printer should be an explicit class to facilitate overriding
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: unknown
  • Submitted: 2009-06-18
  • Updated: 2011-07-25
  • Resolved: 2011-07-25
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 b64Fixed
Related Reports
Relates :  
Relates :  
Description
Since the rich formatter's printer is defined as an anonymous inner class, that makes it almost impossible to subclass the rich formatter and defining a more refined version of the rich printer with slightly different behavior.

Comments
SUGGESTED FIX A webrev of this fix is available at the following URL http://hg.openjdk.java.net/jdk7/tl/langtools/rev/1d9e61e0a075
24-06-2009

EVALUATION The rich formatter's printer should come in an explicit class declaration - so that it would be easier for clients to subclass and override its methods.
18-06-2009