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

Bug in doctree DocCommentTester.compress

XMLWordPrintable

      The following code is supposed to print the beginning and end of long content in TextTree nodes.

                      return (s.length() < 32)
                              ? s
                              : s.substring(0, 16) + "..." + s.substring(16);

      Instead, it always prints all the content for long strings. The second substring should be `s.substring(s.length() - 16)`

            jjg Jonathan Gibbons
            jjg Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: