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

DragSourceEvent ctors null reaction needed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.0
    • client-libs
    • sparc
    • solaris_7



      Name: sdR10048 Date: 11/19/2001


      Javadoc for

          public DragSourceEvent(DragSourceContext dsc)
          public DragSourceEvent(DragSourceContext dsc, int x, int y)

      should declare expected reaction if 'dsc' param is null.

      Currently JDK1.4beta3-b84 throws (for both ctors) IllegalArgumentException
      and JDK1.4beta3-b84 javadoc says:



      public DragSourceEvent(DragSourceContext dsc)

      Construct a DragSourceEvent given a specified DragSourceContext.
      The coordinates for this DragSourceEvent are not specified,
      so getLocation will return null for this event.

      Parameters:
      dsc - the DragSourceContext

      SeeAlso:
      getLocation()



      public DragSourceEvent(DragSourceContext dsc, int x, int y)

      Construct a DragSourceEvent given a specified
      DragSourceContext, and coordinates of the cursor
      location.

      Parameters:
      dsc - the DragSourceContext
      x - the horizontal coordinate for the cursor location
      y - the vertical coordinate for the cursor location

      Since:
      1.4



      For some more details see
      http://java.sun.com/j2se/javadoc/writingapispecs/index.html#method

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

            agerasimsunw Alexander Gerasimov (Inactive)
            dsvsunw Dsv Dsv (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: