JDK-6340202 : REGRESSION: Testcase 4890345 is failing with 50u6_b3 but passing with 50u6_b2
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 5.0u6
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_2003
  • CPU: x86
  • Submitted: 2005-10-21
  • Updated: 2011-01-28
  • Resolved: 2005-11-09
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other JDK 6
5.0u6Fixed 6 b60Fixed
Related Reports
Relates :  
Description
bug4890345.java and Test4890345.java testcases are failing with 50u6_b3 but passing with 50u6_b2.

Testcases failing are,
<Workspace>/workspace_150/test/CTE_REGTEST/Generic/4890345/Test4890345.java
<Workspace>/workspace_150/test/javax/swing/JComboBox/4890345/bug4890345.java

JDK:
---
java -version
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b03)
Java HotSpot(TM) Client VM (build 1.5.0_06-b03, mixed mode, sharing)

Operating System: Windows 2003 SE
-----------------


1. Steps to reproduce for Test4890345:
=====================================

Testcase location:
------------------ /net/urts071.india/export6/testSuites/Regression/workspace_150/test/CTE_REGTEST/Generic/4890345/Test4890345.java

1) Copy the 4890345 directory from the given location : /net/urts071.india/export6/testSuites/Regression/workspace_150/test/CTE_REGTEST/Generic/4890345

2) Go to that directory

2) compile all java files 
<jdk location>/jdk1.5.0_06/bin/javac Test4890345.java

3) Execute the file Test4890345
<jdk location>/jdk1.5.0_06/bin/java Test4890345


With 1.5.0_06-b03:
==================
Exception in thread "main" java.lang.RuntimeException: Popup was not shown after VK_DOWN key press. Test failed at Test4890345.main(Test4890345.java:86)

With 1.5.0_06-b02:
==================

Popup is shown even after VK_DOWN key press.
Even This test is failing for XP-prof AMD 64 bit jdk.

java -version
=============
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b03)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_06-b03, mixed mode)

Comments
EVALUATION Note: CTE will need to update their version of this testcase separately.
28-10-2005

EVALUATION 4976239 changed JTable behavior such that cell 0,0 is no longer selected by default. As a result, the test requires an extra TAB keystroke. Also, in Mustang, the fix to make JTableHeader's focusable, means a second extra keystroke is required. This requires a simple fix to the test only.
28-10-2005

EVALUATION It seems that we have some sort of focussing issues in table. Usually, when we called table.editCellAt(0, 0) first cell of the first row received focus and if someone press <Tab> key focus is being transferred to the second cell of the first row. Now it is not so, when we are starting editing by editCellAt focus is not being transferred to the cell and when we do press <Tab> first row of the first column is being focused. To fix test failure it is enough to add another tab press to the robot's instructions.
28-10-2005