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

REGRESSION: JCK1.5-runtime api/java_awt/interactive/FrameTests.html#FrameTests

XMLWordPrintable

    • b37
    • x86
    • linux
    • Verified



      Name: iaR10016 Date: 10/20/2003


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.5.0-b24, JDK1.5.0-b23, JDK1.5.0-b22
                         (not reproducible with JDK1.4.2-b28)
      JCK : JCK1.5-runtime (b06)
      Platform[s] : SuSE SLES 8/Gnome2, Suse Linux 8.1/Gnome2
                         (not reproducible on any Solaris and Windows,
                          not reproducible on RedHat Linux 9.0/Gnome2, RH AS 2.1/Gnome)
      switch/Mode : default
      JCK test owner : http://javaweb.eng/jck/usr/owners.jto
      Falling test[s]:
                api/java_awt/interactive/FrameTests.html#FrameTests [FrameTest0002, FrameTest0001]

      JCK1.5-runtime (b06) api/java_awt/interactive/FrameTests.html#FrameTests test fails
      with JDK1.5.0-b24 on Suse Linux.

      The following test example demonstrates the bug:

      --------- test.java ---------
      import java.awt.*;

      public class test {
          public static void main(String[] args) {
            Frame frame1 = new Frame("I am resizible frame!");
            frame1.setSize(new Dimension(500,300));
            frame1.setLocation(500, 500);
            frame1.setVisible(true);

            Frame frame2 = new Frame("I am not resizible frame!");
            frame2.setSize(new Dimension(500,300));
            frame2.setResizable(false);
            frame2.setVisible(true);
           }
      }
      -----------------------------

      Please, compile and run this example using JDK1.5.0-b24.

      The test creates and shows two Frame components: one resizible and one not-resizible.
      Problem is that when not-resizible component does not have the focus, its title is not displayed.
      When this frame gets the focus its title is displayed correctly.
      Please, also note that the birder of not-resizible compnent is black unexpectedly.

      This failure is reproducible 8 times from 10 on my Suse Linux 8.1 box with Gnome2.
      The failure is reproducible with XToolkit and not reproducible with MToolkit.

      Test source location:
      =====================
      /java/re/jck/1.5/promoted/beta/b06/binaries/JCK-runtime-15/tests/api/java_awt/interactive/FrameTests.java

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b24/jck15/linux/Sles8_gnome_client_dsa_linux-4/workDir/api-interactive/java_awt/interactive/FrameTests_FrameTests.jtr

      How to reproduce:
      =================
      Run the following script (you may need to change its variables)
      --- script start ---
      #!/bin/bash

      #Paths in Java Software:
      JDK="/java/re/jdk/1.5.0/promoted/all/b24/binaries/linux-i586"
      JCK="/java/re/jck/1.5/promoted/beta/b06/binaries/JCK-runtime-15"

      #Alternative paths outside Java Software:
      #JDK="/net/koori.sfbay/onestop/jdk/1.5.0/promoted/all/b24/binaries/linux-i586"
      #JCK="/net/koori.sfbay/onestop/jck/1.5/promoted/beta/b06/binaries/JCK-runtime-15"

      #Alternative paths for the NSK site:
      #JCK="/net/linux-15/export/home/java/jck1.5/JCK-runtime-15"
      #JDK="/net/linux-15/export/home/java/jdk1.5.0/linux"

      CLASSPATH="$JCK/classes:$JCK/lib/javatest.jar"

      $JDK/bin/java -cp $CLASSPATH javasoft.sqe.tests.api.java.awt.interactive.Frame.FrameTests -TestCaseID FrameTest0001 FrameTest0002
      --- script end ---

      Specific machine info:
      ======================
      Hostname: linux-4
      OS: SuSE SLES 8

      Hostname: bela.sfbay
      OS: SuSE SLES8 (amd64)

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

            yan Yuri Nesterenko
            irasunw Ira Ira (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: