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

DropTargetListener listeners are accumulated in an uncontrolled way

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • None
    • 5.0u7
    • client-libs

      J2SE Version (please include all output from java -version flag):
        java version "1.5.0_07"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b02)
        Java HotSpot(TM) Client VM (build 1.5.0_07-b02, mixed mode, sharing)

      Does this problem occur on J2SE 1.4.x or 5.0.x ? Yes / No (pick one)
        1.4.x YES
        5.0.x YES also for the release build 06
        1.6.0 b77 NO due to overall structural changes concerning data transfer

      Operating System Configuration Information (be specific):
        Windows XP SP2 Professional / DE

      Hardware Configuration Information (be specific):
        Intel Pentium Mobile on VAIO VGN-FS 1.6 GHz

      Bug Description:
        The javax.swing.plaf.basic.BasicTableUI.installUI() method
        adds a default DropTargetListener instance each time it is
        called with a TransferHandler being set. Thus, listeners
        are accumulated in an uncontrolled way also causing other
        side effects (cf. comments of enclosed sample source for
        details).

      Steps to Reproduce (be specific):
        Compile end execute the enclosed sample source and
        use debugger to check the number of DropTargetListereners
        being installed for the table ui. You may also try to start
        dragging over the component and abort dragging in order to
        implicitly produce a NullPointerException.

            shickeysunw Shannon Hickey (Inactive)
            tyao Ting-Yun Ingrid Yao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: