-
Bug
-
Resolution: Fixed
-
P3
-
1.4.2
-
b11
-
x86, sparc, itanium
-
linux, solaris_8, solaris_9, windows_2000
Name: iaR10016 Date: 11/28/2002
Filed By : J2SE-SQA [###@###.###
JDK : JDK1.4.2-b08, JDK1.4.0, JDK1.4.1
JCK : JCK1.4a-runtime
Platform[s] : RedHat Linux 7.3 (GNOME), Windows 2000, Solaris 9 (sparc) (CDE), Solaris 8 (x86)
switch/Mode : default
JCK test owner : http://javaweb.eng/jck/usr/owners.jto
Falling test[s]: api/javax_swing/interactive/JPMenuTests.html#JPMenuTests
[JPMenuTests0006, JPMenuTests0007, JPMenuTests0008]
JCK1.4a-runtime api/javax_swing/interactive/JPMenuTests.html#JPMenuTests test
fails with JDK1.4.0, JDK1.4.1, JDK1.4.2.
JPopupMenu.setLocation(int, int), JPopupMenu.setPopupSize(int, int) and
JPopupMenu.setPopupSize(Dimention) methods do not work as expected when their integer
parameters are big enough.
Please run api/javax_swing/interactive/JPMenuTests.html#JPMenuTests test on RedHat Linux
(GNOME) with JDK1.4.2-b08. Here are examples of incorrect JPopupMenu behaviour:
1. Testcases JPMenuTests0007, JPMenuTests0008 test JPopupMenu.setPopupSize(int, int) and
JPopupMenu.setPopupSize(Dimention) methods correspondingly. If JPopupMenu size is less then
screen size (for example, 100), it behaves correctly: it has correct width and height
and appears in the place where mouse pointer is located.
In testcase JPMenu0007 set Width to 2147483647 (max integer number). Right-click mouse on
tested panel several times. The JPopupMenu is redrawn incorrectly or sometimes does not appear.
Set Width to 10000 and right-click on the tested panel. JPopupMenu width is more then the tested
panel width, so the menu left upper corner is located at the left border of the screen. It is OK.
Now set Width to 100 (as at the begining of the testing). It is expected that the menu left upper
corner will appear inside the tested panel, but actually it is outside the panel - it is still
located at the left screen border. If you right-click once more, the location of JPopupMenu
becomes correct.
2. Testcase JPMenuTests0006 tests JPopupMenu.setLocation(int, int) method.
Please, set XCoord and YCoord parameters to 10000 (it is more then the screen size) and then
right-click on tested panel. JPopupMenu appears in the right bottom corner of the screen. Now set
XCoord and YCoord to 2147483647 (max integer number). It is expected that the JPopupMenu will
appear in the right bottom corner too, bat actually it is in the upper left corner now.
Test source location:
=====================
/java/re/jck/1.4a/promoted/fcs/binaries/JCK-runtime-14a/tests/api/javax_swing/interactive/JPMenuTests.java
jtr file location:
==================
/net/jtgb4u4c.sfbay/export/sail15/results/mantis/b08/jck14a/x86/sol8_x86_server_linux-10/workDir/api-interactive/javax_swing/interactive/JPMenuTests_JPMenuTests.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 javasoft.sqe.tests.api.javax.swing.interactive.JPMenu.JPMenuTests -TestCaseID JPMenuTests0007 JPMenuTests0008 JPMenuTests0006
--- script end ---
Specific machine info:
======================
Hostname: linux-19
OS: RedHat Linux 7.3 (GNOME)
Hostname: linux-2
OS: Windows 2000
Hostname: linux-10
OS: Solaris 8 (x86)
Hostname: novo48
OS: Solaris 9 (sparc) (CDE)
======================================================================
###@###.### 10/13/04 17:27 GMT
Filed By : J2SE-SQA [###@###.###
JDK : JDK1.4.2-b08, JDK1.4.0, JDK1.4.1
JCK : JCK1.4a-runtime
Platform[s] : RedHat Linux 7.3 (GNOME), Windows 2000, Solaris 9 (sparc) (CDE), Solaris 8 (x86)
switch/Mode : default
JCK test owner : http://javaweb.eng/jck/usr/owners.jto
Falling test[s]: api/javax_swing/interactive/JPMenuTests.html#JPMenuTests
[JPMenuTests0006, JPMenuTests0007, JPMenuTests0008]
JCK1.4a-runtime api/javax_swing/interactive/JPMenuTests.html#JPMenuTests test
fails with JDK1.4.0, JDK1.4.1, JDK1.4.2.
JPopupMenu.setLocation(int, int), JPopupMenu.setPopupSize(int, int) and
JPopupMenu.setPopupSize(Dimention) methods do not work as expected when their integer
parameters are big enough.
Please run api/javax_swing/interactive/JPMenuTests.html#JPMenuTests test on RedHat Linux
(GNOME) with JDK1.4.2-b08. Here are examples of incorrect JPopupMenu behaviour:
1. Testcases JPMenuTests0007, JPMenuTests0008 test JPopupMenu.setPopupSize(int, int) and
JPopupMenu.setPopupSize(Dimention) methods correspondingly. If JPopupMenu size is less then
screen size (for example, 100), it behaves correctly: it has correct width and height
and appears in the place where mouse pointer is located.
In testcase JPMenu0007 set Width to 2147483647 (max integer number). Right-click mouse on
tested panel several times. The JPopupMenu is redrawn incorrectly or sometimes does not appear.
Set Width to 10000 and right-click on the tested panel. JPopupMenu width is more then the tested
panel width, so the menu left upper corner is located at the left border of the screen. It is OK.
Now set Width to 100 (as at the begining of the testing). It is expected that the menu left upper
corner will appear inside the tested panel, but actually it is outside the panel - it is still
located at the left screen border. If you right-click once more, the location of JPopupMenu
becomes correct.
2. Testcase JPMenuTests0006 tests JPopupMenu.setLocation(int, int) method.
Please, set XCoord and YCoord parameters to 10000 (it is more then the screen size) and then
right-click on tested panel. JPopupMenu appears in the right bottom corner of the screen. Now set
XCoord and YCoord to 2147483647 (max integer number). It is expected that the JPopupMenu will
appear in the right bottom corner too, bat actually it is in the upper left corner now.
Test source location:
=====================
/java/re/jck/1.4a/promoted/fcs/binaries/JCK-runtime-14a/tests/api/javax_swing/interactive/JPMenuTests.java
jtr file location:
==================
/net/jtgb4u4c.sfbay/export/sail15/results/mantis/b08/jck14a/x86/sol8_x86_server_linux-10/workDir/api-interactive/javax_swing/interactive/JPMenuTests_JPMenuTests.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 javasoft.sqe.tests.api.javax.swing.interactive.JPMenu.JPMenuTests -TestCaseID JPMenuTests0007 JPMenuTests0008 JPMenuTests0006
--- script end ---
Specific machine info:
======================
Hostname: linux-19
OS: RedHat Linux 7.3 (GNOME)
Hostname: linux-2
OS: Windows 2000
Hostname: linux-10
OS: Solaris 8 (x86)
Hostname: novo48
OS: Solaris 9 (sparc) (CDE)
======================================================================
###@###.### 10/13/04 17:27 GMT
- relates to
-
JDK-4788946 Two JCK1.4a api/java/awt/interactive tests fail
- Closed
-
JDK-4786133 JCK1.4a-runtime api/java_awt/interactive/TextAreaTests.html#TextAreaTests fails
- Open
-
JDK-4784730 JCK1.4a-runtime api/java_awt/interactive/ScrollbarTests.html#ScrollbarTests fail
- Closed
-
JDK-4791147 JCK1.4a-runtime api/java_awt/interactive/GridLayoutTests.html#GridLayoutTests fa
- Closed
-
JDK-4791148 JCK1.4a-runtime api/java_awt/interactive/InsetsTest.html#InsetsTest failed
- Closed