JDK-4766414 : Two JCK1.4a-runtime-api interactive tests failed
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.2
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux,windows_98
  • CPU: x86
  • Submitted: 2002-10-22
  • Updated: 2002-10-22
  • Resolved: 2002-10-22
Related Reports
Duplicate :  
Description

Name: iaR10016			Date: 10/22/2002


Filed By       : J2SE-SQA [###@###.###
JDK            : JDK1.4.2-b03
                 (the tests pass with JDK1.4.0, JDK1.4.1)
JCK            : JCK1.4a-runtime
Platform[s]    : Windows 98
switch/Mode    : plugin
JCK test owner : http://javaweb.eng/jck/usr/owners.jto
Falling test[s]:
        api/javax_swing/interactive/JOptionPaneTests.html#JOptionPane
        api/javax_swing/interactive/JInternalFrameTests.html#JInternalFrame

Two JCK1.4a-runtime tests fail on JDK1.4.2-b03.

The following test example demonstrates the bug:

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

public class test extends JFrame {
    public test() {
        super("JInternalFrame test");
        JDesktopPane dpane = new JDesktopPane();
        JInternalFrame internalFrame = new JInternalFrame("JInternalFrame");
        internalFrame.setBounds(20,20,100,150);
        internalFrame.setVisible(true);
        dpane.add(internalFrame);
        getContentPane().add( dpane, BorderLayout.CENTER );
    }

    public static void main(String[] args) {
        JFrame frame = new test();
        frame.setSize(new Dimension(400,300));
        frame.setVisible(true);
    }
}
-----------------------------

Please, compile and run this example with JDK1.4.2.
Move JInternalFrame component down as far as possible.
You can not move the internal frame up after this action.

Please, note that the test works fine with JDK1.4.0, JDK1.4.1.

Test source location:
=====================
/net/jdk/export/disk8/local.java/jck1.4a/JCK-runtime-14a/tests/api/javax_swing/interactive/JInternalFrameTests.java
/net/jdk/export/disk8/local.java/jck1.4a/JCK-runtime-14a/tests/api/javax_swing/interactive/JOptionPaneTests.java

jtr file location:
==================
/net/jtgb4u4c.eng/export/sail15/results/mantis/b03/jck14a/win32/win98_plugin_ie6.0linux-17/javax_swing/interactive/JOptionPaneTests_JOptionPane.jtr
/net/jtgb4u4c.eng/export/sail15/results/mantis/b03/jck14a/win32/win98_plugin_ie6.0linux-17/javax_swing/interactive/JInternalFrameTests_JInternalFrame.jtr

How to reproduce:
=================
Run the following script (probably, you may need to change JCK and JDK variables):
--- script start ---
#!/bin/bash
JCK="h:/java/jck1.4a/JCK-runtime-14a"
JDK="h:/java/jdk1.4.2/win32"
CLASSPATH="$JCK/classes;$JCK/javatest.jar"
$JDK/bin/java swing.interactive.JInternalFrame.JInternalFrameTests -TestCaseID JInternalFrameTest0001
--- script end ---

Move JInternalFrame down as far as possible and then try to move it up.

Specific machine info:
======================
Hostname: linux-17
OS: Windows 98

Hostname: linux-19
OS: RedHat Linux 7.3

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