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

TEST_BUG: regression test javax/swing/JPopupMenu/4195823/bug4195823 is invalid

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.3.0, 1.4.0
    • client-libs
    • beta
    • generic, x86
    • generic, linux
    • Verified



      Name: dkC103137 Date: 07/05/2000


        The test javax/swing/JPopupMenu/4195823/bug4195823.java is not intended for
      for JDK1.3. Please see evalution of related bug #4332342 below:

      ---------------------- cut ------------------------------
      Name: pzR10082 Date: 06/19/2000

      This is not Linux-specific problem; the test fails on Solaris and
      NT as well.

      The original bug, 4195823, says:
      "The Container class has a remove(int) and remove(Component)
      method. The remove(Component) method calls remove(int).
      JPopupMenu overrides remove(Component) to do JPopupMenu specific
      stuff. If you directly call JPopupMenu.remove(int) this specific
      stuff is not done."

      This `specific stuff' is not done any more; it was removed in 1.3.
      JPopupMenu no more overrides add(Component) method at all and
      overrides add(int) only to throw IllegalArgumentException.
      The regression test fails because it checks if remove(int)
      performs the `specific stuff'. So it doesn't now make sense and
      will be removed from the workspace. This bug will be closed.

      ###@###.### 2000-06-20

      ---------------------- end of cut -----------------------

      So this test should be removed from regression testsuite for JDK1.3.

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

            busersunw Btplusnull User (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: