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

REGRESSION: api/javax_swing/interactive/JDialogTests.html#JDialog fails

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      tiger
    • CPU:
      x86
    • OS:
      linux
    • Verification:
      Verified

      Description



      Name: iaR10016 Date: 08/20/2003


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.5.0-b15
                        (not reproducible with JDK1.4.2-b28)
      JCK : JCK1.5-runtime (b02)
      Platform[s] : Suse Linux 8.2 (GNOME2)
      switch/Mode : default
      JCK test owner : http://javaweb.eng/jck/usr/owners.jto
      Falling tests : api/javax_swing/interactive/JDialogTests.html#JDialog [JDialogTest0007]

      JCK1.5-runtime api/javax_swing/interactive/JDialogTests.html#JDialog[JDialogTest0007] test
      fails with JDK1.5.0-b15 on Suse Linux 8.2 with Gnome2. Please, see "Specific machine info"
      section to get more information about the tested configuration.

      The test verifies javax.swing.JDialog.setDefaultCloseOperation(int) method behavior.

      Java TM 2 Platform Std.Ed.v1.5.0 Specification reads:
      ...
      public void setDefaultCloseOperation(int operation)
      Sets the operation which will happen by default when the user initiates a "close" on this dialog.
      The possible choices are:
           * DO_NOTHING_ON_CLOSE - do not do anything - require the program to handle the operation in
             the windowClosing method of a registered WindowListener object.
           * HIDE_ON_CLOSE - automatically hide the dialog after invoking any registered WindowListener
             objects
           * DISPOSE_ON_CLOSE - automatically hide and dispose the dialog after invoking any registered
             WindowListener objects
      ...

      Please, do the following steps to reproduce the failure:

      1. Start the test from linux terminal window using script from "How to reproduce" section.
          JDialogTests test window appears.
      2. Select "DO_NOTHING_ON_CLOSE" switch in the JDialogTests window.
      3. Make sure that initial terminal window is not iconified.
          Click "Show Dialog" button in the JDialogTests window. JDialog appears.
      4. Click on the JDialog title bar to make it active and then try to close it, for
          example click close sign ("x") in the dialog title bar area.
          It is expected that nothing happens, but actually initial terminal window becomes active
          and overlap tested dialog and JDialogTests window.

      Tha same effect appears with "HIDE_ON_CLOSE" and "DISPOSE_ON_CLOSE" modes:
      tested JDialog disappears (as expected) and then terminal window (not JDialogTests window
      as expected!) gets focus.

      Please, note that this bug is not reproducible if JDialog window has no focus when user click
      it's close sign in the title bar.

      I am not able to reproduce it on the other computers I have.

      Please, see also bug 4877726.

      Test source location:
      =====================
      /java/re/jck/1.5/promoted/latest/binaries/JCK-runtime-5/tests/api/javax_swing/interactive/JDialogTests.java

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b15/jck15/linux/suse8.0_gnome_server_linux-2/workDir/api-interactive/javax_swing/interactive/JDialogTests_JDialog.jtr

      How to reproduce:
      =================
      Run the following script (you may need to change it's JCK and JDK variables):
      --- script start ---
      #!/bin/bash
      JCK="/java/re/jck/1.5/promoted/latest/binaries/JCK-runtime-15"
      JDK="/java/re/jdk/1.5.0/promoted/latest/binaries/linux"
      #JCK="/net/linux-15/export/home/java/jck1.5/JCK-runtime-15"
      #JDK="/net/linux-15/export/home/java/jdk1.5.0/linux"
      export CLASSPATH="$JCK/classes:$JCK/lib/javatest.jar"
      $JDK/bin/java javasoft.sqe.tests.api.javax.swing.interactive.JDialog.JDialogTests -TestCaseID JDialogTest0007
      --- script end ---

      Specific machine info:
      ======================
      ...
      linux-2 linux/suse8.0_gnome_server_linux-2> uname -a
      Linux linux-2 2.4.20-4GB #1 Mon Mar 17 17:54:44 UTC 2003 i686 unknown unknown GNU/Linux
      linux-2 linux/suse8.0_gnome_server_linux-2>
      linux-2 linux/suse8.0_gnome_server_linux-2> cat /etc/issue
      Welcome to SuSE Linux 8.2 (i586) - Kernel \r (\l).
      linux-2 linux/suse8.0_gnome_server_linux-2>
      linux-2 linux/suse8.0_gnome_server_linux-2> ps -aux | grep metacity
      root 3142 0.2 2.8 13936 7352 ? S 15:19 0:03 /opt/gnome2/bin/metacity --sm-client-id=default1
      ira 3677 0.0 0.2 3540 560 pts/5 R 15:40 0:00 grep metacity
      linux-2 linux/suse8.0_gnome_server_linux-2>
      linux-2 linux/suse8.0_gnome_server_linux-2> rpm -qa | grep metacity
      metacity-themes-0.1-103
      metacity-2.4.34-31
      linux-2 linux/suse8.0_gnome_server_linux-2>
      ...

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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sharonz Sharon Zakhour (Inactive)
              Reporter:
              irasunw Ira Ira (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: