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

Calling DragSource.getDefaultDragSource() hangs the DnD Applications in Win32

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P1 P1
    • None
    • 1.4.0
    • client-libs
    • x86
    • windows_nt

      When a call to DragSource.getDefaultDragSource() is made, the application hangs in Win32. This happens only in Merlin - Beta 31

      How to reporduce the Bug
      ========================

      Run the Sample program given below.
      See if both "Before..." and "After..." messages and the object is printed on the
      console. If the program just prints "Before..." and hangs, bug is reproduced.


      -----------GetDefaultDragSourceBug.java--------------

      import java.awt.dnd.*;

      //Method returns the DragSource object associated with the underlying platform

      public class GetDefaultDragSourceBug {

      public static void main(String args[]) {

      System.out.println("\nBefore calling getDefaultDragSource()");
      DragSource ds = DragSource.getDefaultDragSource();
      System.out.println("After calling getDefaultDragSource()");
      System.out.println("DragSource object : " + ds);
      }
      }

            dassunw Das Das (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: