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

DocLint parsing problems with some comments

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • None
    • tools
    • 8
    • b77
    • Verified

      The DocLint has trouble parsing some comments:
      1. comments that end with an identifier lead to infinite loop, because EOI is Java identifier part, so the DocCommentParser tries to read and process the EOI forever. Can be reproduced using the attached "EndWithIdentifier.java" from the attached zip. A stacktrace when this happens is attached as infinite-loop.txt
      2. an unfinished inline tag may lead to a StringIndexOutOfBoundsException. Test case is "UnfinishedInlineTag.java", exception exception.txt.

        1. EndWithIdentifier.java
          0.4 kB
        2. exception.txt
          2 kB
        3. infinite-loop.txt
          2 kB
        4. UnfinishedInlineTag.java
          0.1 kB

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

              Created:
              Updated:
              Resolved: