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

Doc for javax.swing.JComponent.setInputMap() is contradictory

XMLWordPrintable

    • beta
    • sparc
    • solaris_2.6



      Name: ooR10001 Date: 11/20/2000


      Specification for javax.swing.JComponent.setInputMap() is contradictory, because
      from one side it says:
      ------------------------------------------------------------
      If condition is WHEN_IN_FOCUSED_WINDOW and map is not a
            ComponentInputMap, an IllegalArgumentException will be thrown
      ------------------------------------------------------------
      >From the other side, the same doc says below:
      ------------------------------------------------------------
      Throws:
                  IllegalArgumentException - if condition is WHEN_IN_FOCUSED_WINDOW and map
                  is an instance of ComponentInputMap, or if condition is not one of the
                  legal values specified above
      ------------------------------------------------------------
      This needs to be fixed. Proposing that the first assertion is true.

      ======================================================================

            sharonz Sharon Zakhour (Inactive)
            oovsunw Oov Oov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: