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

Memoryleak in JColorChooser.showDialog(..)

XMLWordPrintable

      FULL PRODUCT VERSION :
      Linux thee 2.6.15-27-k7 #1 SMP PREEMPT Fri Dec 8 18:22:01 UTC 2006 i686 GNU/Linux
      [kees]# java -version
      java version "1.6.0"
      Java(TM) SE Runtime Environment (build 1.6.0-b105)
      Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Linux thee 2.6.15-27-k7 #1 SMP PREEMPT Fri Dec 8 18:22:01 UTC 2006 i686 GNU/Linux

      A DESCRIPTION OF THE PROBLEM :
      JColorChooser.showDialog(COmponent component, String title, Color initialColor)
      has a memoryleak.

      It calls dialog.show() but it never disposes of that dialog.
      After the dialog.show() it should call dialog.dispose();

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Just look at the code.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      no memory leaks
      ACTUAL -
      memory leak

      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      Do not use JColorChooser.showDialog() but create your own

            shickeysunw Shannon Hickey (Inactive)
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: