JDK-4791147 : JCK1.4a-runtime api/java_awt/interactive/GridLayoutTests.html#GridLayoutTests fa
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.4.2
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux,solaris_8,windows_2000
  • CPU: x86,sparc,itanium
  • Submitted: 2002-12-10
  • Updated: 2006-07-19
  • Resolved: 2006-07-19
Related Reports
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
Name: iaR10016			Date: 12/09/2002


Filed By       : J2SE-SQA [###@###.###
JDK            : JDK1.4.2-b09, JDK1.4.0, JDK1.4.1
JCK            : JCK1.4a-runtime
Platform[s]    : SuSe 8.0 (GNOME), RedHat Linux 7.3(GNOME), Windows 2000, Solaris Sparc, Solaris x86
switch/Mode    : default
JCK test owner : http://javaweb.eng/jck/usr/owners.jto
Falling tests  : api/java_awt/interactive/GridLayoutTests.html#GridLayoutTests
                  [GridLayoutTest0001, GridLayoutTest0002, GridLayoutTest0003]

JCK1.4a-runtime api/java_awt/interactive/GridLayoutTests.html#GridLayoutTests test fails on JDK1.4.0,
JDK1.4.1, JDK1.4.2.

GridLayout.setRows(int), GridLayout.setColumns(int), GridLayout.SetVgap(int), GridLayout.setHgap(int)
methods do not work as expected if their integer parameters are big enough.

Please do the following to see the failure:

1. Run api/java_awt/interactive/GridLayoutTests.html#GridLayoutTests[GridLayoutTest0001]
testcase on Solaris-Sparc:
    - Setting Rows to 2147483647 (max integer number) and Height to 4 has no visible effect.
    - After setting Rows to 2147483647 and Height to 1 the test hangs.
    - Setting Rows to 100 and Columns to 4 has no visible effect. If you maximize and then minimize
      tested frame, grid becomes correctly visible.

2. Probably, this is a duplicate of a problem described in the bug 4788946:
    - in testcases GridLayoutTest0002 and GridLayoutTest0003 setting Hgap or Vgap to 2147483647 has
      no visible effect.
    - Setting Hgap to 1000 has no visible effect. If you minimize and then maximize tested frame,
      grid becomes correctly visible.

Test source location:
=====================
/java/re/jck/1.4a/promoted/fcs/binaries/JCK-runtime-14a/tests/api/java_awt/interactive/GridLayoutTests.java

jtr file location:
==================
/net/jtgb4u4c.sfbay/export/sail15/results/mantis/b09/jck14a/linux/suse8.0_gnome_server_linux-19/workDir/api-interactive/java_awt/interactive/GridLayoutTests_GridLayoutTests.jtr

How to reproduce:
=================
Run the following script (you may need to change its variables)

--- script start ---
#!/bin/bash
JCK="/java/re/jck/1.4a/promoted/fcs/binaries/JCK-runtime-14a"
JDK="/net/jdk/export/disk8/local.java/jdk1.4/linux-i386"
export CLASSPATH="$JCK/classes:$JCK/lib/javatest.jar"
$JDK/bin/java $switches javasoft.sqe.tests.api.java.awt.interactive.GridLayoutTests -TestCaseID GridLayoutTest0001 GridLayoutTest0002 GridLayoutTest0003
--- script end ---

Specific machine info:
======================
Hostname: linux-19
OS: RedHat Linux 7.3 (GNOME)

Hostname: Linux-22
OS: Windows 2000

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

Name: icR10030			Date: 12/11/2002


One more testcase fails due to the bug:
api/java_awt/interactive/GridBagLayoutTests.html#GridBagLayoutTests


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

Comments
EVALUATION Commit to fix in Tiger (JCK failure, not red for Mantis) ###@###.### 2002-12-10 Name: adR10249 Date: 05/31/2004 The problem exists in Tiger too. It is obvious that there is no any possibility to show 2147483647 rows|columns in GridLayout or anything else. I believe that in real application there is no neccessary in Components with width or height 1 or 2 pixels. I inline to limit maximum rows|columns in GridLayout. Most likely we must distribute this on other layout managers. JCK test written correctly, so doc-change is needed to change this JCK test. ###@###.### 31-May-2004 ======================================================================
17-09-2004