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

DragSourceContext spec: behavior of getCursor()/setCursor() not clear

XMLWordPrintable

    • 1.2.2
    • sparc
    • solaris_2.5



      Name: sdC67446 Date: 03/23/98


      The DragSourceContext spec does not say anything about the expected
      behavior of getCursor and setCursor if null is provided as the
      value of the 'cursor' input parameter to setCursor.
      null is an acceptable value for the 'cursor' parameter
      (a NullPointerException is not thrown) in the case of setCursor; this
      should be clearly stated in the spec, and the expected behavior in this
      situation should be specified. Also, it should be specified that
      getCursor() returns null if there is no cursor set on the component.

      Here is what doc's quote:
      --------------------------------------------------
      public void setCursor(Cursor c)
            change the drag cursor

      public Cursor getCursor()
            Returns:
                  the current drag cursor
      --------------------------------------------------
      ======================================================================

            shommel Scott Hommel (Inactive)
            sdmitriesunw Sergei Dmitriev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: