Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6985202

no access to doc comments from Tree API

    Details

    • Subcomponent:
    • Resolved In Build:
      b123
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      You can get at doc comments from the Language Model API (via Elements.getDocComment(Element e) ) but not from the Tree API.

      There should be a method like
      Trees.getDocComment(CompilationUnitTree unit, Tree tree)
      to get the comment (possibly null) for a tree.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jjg Jonathan Gibbons
                Reporter:
                jjg Jonathan Gibbons
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: