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

(ch) Incorrect parameters list in docs for SelectableChannel.register (spec)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.4.0
    • core-libs
    • fcs
    • generic
    • generic



      Name: rmT116609 Date: 07/30/2001


      java version "1.4.0-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b65)
      Java HotSpot(TM) Client VM (build 1.4.0-beta-b65, mixed mode)


      java.nio.channels.SelectableChannel.register has the following signature:

      public abstract SelectionKey register(Selector sel, int ops) throws ClosedChannelException

      The parameters documentation, however, has:

      Parameters:
      sel - The selector with which this channel is to be registered
      set - The initial interest set for the resulting key

      Should "set" be "ops"?

      (This affects AbstractSelectableChannel, too.)
      (Review ID: 129078)
      ======================================================================

            mr Mark Reinhold
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: