JDK-8236142 : DocTrees should provide getCharacters(EntityTree)
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javadoc(tool)
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-12-18
  • Updated: 2020-11-04
  • Resolved: 2020-09-11
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 16
16 b16Fixed
Related Reports
Blocks :  
CSR :  
Relates :  
Description
com.sun.source.doctree.EntityTree provides a representation of an entity found in a doc comment, but does not provide any way to get the corresponding characters represented by the entity.

We should add a method to the DocTrees utility class to access the characters, if the entity is valid, or null if not.

    String getCharacters(EntityTree tree)
Comments
Changeset: 7f27d0b0 Author: Jonathan Gibbons <jjg@openjdk.org> Date: 2020-09-11 14:47:15 +0000 URL: https://git.openjdk.java.net/jdk/commit/7f27d0b0
11-09-2020

Adding this method will make it easier to move the internal Entity class out of doclint, so that doclint can be moved to the jdk.javadoc mdoule.
18-12-2019