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

Incompleteness of java.util.logging.SocketHandler.close() method description

XMLWordPrintable

    • Cause Known
    • generic
    • generic

      Class: java.util.logging.SocketHandler
      Method: public void close()

      Specification describes this method:
      ============================================
      public void close()
                 throws SecurityException

          Close this output stream.

          Overrides:
              close in class StreamHandler

          Throws:
              SecurityException - if a security manager exists and if the caller does not have LoggingPermission("control").
      ============================================

      In fact, this method not only closes the stream, but does more things, described for the base class (StreamHandler) method:
      ============================================
      public void close()
                 throws SecurityException

          Close the current output stream.

          The Formatter's "tail" string is written to the stream before it is closed. In addition, if the Formatter's "head" string has not yet been written to the stream, it will be written before the "tail" string.
      ============================================

      It is not mentioned for java.util.logging.SocketHandler.close() method, that it performs the same operations, as java.util.logging.StreamHandler.close().

      ###@###.### 2005-04-20 14:57:52 GMT

            Unassigned Unassigned
            ashusher Alexander Shusherov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: