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

Fix DocTreeFactory newDocCommentTree

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • tools
    • b140
    • generic
    • generic
    • Verified

      The Compiler Tree API's DocTreeFactory newDocCommentTree makes it difficult to create and display the comment body.

      The interface takes firstSentence and the body, but when printing the full body as required by javadoc, the whitespace between the first sentence trees and the body are lost, and it is very difficult to guess the whitespace especially in the case of break iterators and in non-english languages.

      The solution is that newDocCommenTree must take the fullbody and deal with breaking the first sentence,

            ksrini Kumar Srinivasan
            ksrini Kumar Srinivasan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: