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

SourceToHTMLConverter.convertClass fails to close its Reader

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 6
    • tools
    • b51
    • generic
    • generic

      src/share/classes/com/sun/tools/doclets/internal/toolkit/util/SourceToHTMLConverter.java
      convertclass creates a LineReader, but never closes it, which is considered bad juju
      and can lead to file descriptor exhaustion.

      All streams/readers/writers should be closed in a finally block when no longer needed.

      There are probably other such bugs in the JDK.

      This bug is not known to cause any user-visible effects.

            martin Martin Buchholz
            martin Martin Buchholz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: