JDK-7104201 : Refactor DocCommentScanner
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 8
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: unknown
  • Submitted: 2011-10-24
  • Updated: 2012-02-24
  • Resolved: 2012-02-24
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 8
8 b14Fixed
Related Reports
Relates :  
Description
DocCommentScanner can be refactored as a subclass of JavaTokenizer, following the recent refactoring of Scanner.java.

Comments
EVALUATION Java comments should be processed in a pluggable helper class, so that different policies can be put in place - this will be better than relying on subclassing. Helper classes for comments on a token can be stored on a list on the token itself, so that they can be retrieved at a later stage (i.e. by the parser).
04-11-2011

SUGGESTED FIX A webrev of this fix is available at the following URL: http://hg.openjdk.java.net/jdk8/tl/langtools/rev/56830d5cb5bb
04-11-2011