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

Instances of Tokens.Comment should not be defined in inner classes

    XMLWordPrintable

Details

    • b86
    • Not verified

    Description

      Currently, JavadocComment is defined as an inner class in JavadocTokenizer.JavadocTokenizer. This means it keeps a reference to JavadocTokenizer, which indirectly means it has reference to the source buffer for the file. This means that in javadoc mode, every JCCompilationUnitTree is keeping its source buffer in memory. Oops.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: