JDK-7188612 : JTable's AccessibleJTable throws IllegalComponentStateException instead of null
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 7
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: x86
  • Submitted: 2012-08-02
  • Updated: 2013-06-26
  • Resolved: 2012-09-05
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.
JDK 7 JDK 8
7u40Fixed 8 b55Fixed
Description
FULL PRODUCT VERSION :
java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) 64-Bit Server VM (build 21.0-b17, mixed mode)

ADDITIONAL OS VERSION INFORMATION :
Linux 3.2.0-23-generic Ubuntu x86_64
Windows 6.1.7601

A DESCRIPTION OF THE PROBLEM :
When using accessiblity inner classes of JTable such as JTable$AccessibleJTable$AccessibleJTableCell or Table$AccessibleJTable$AccessibleJTableHeaderCell that implement AccessibleComponent, getLocationOnScreen interface throws IllegalComponentStateException instead of null when the corresponding JTable is not visible.  This behavior conflicts with AccessibleComponent.getLocationOnScreen javadoc



REPRODUCIBILITY :
This bug can be reproduced always.

Comments
EVALUATION JTable$AccessibleJTable$AccessibleJTableCell and JTable$AccessibleJTable$AccessibleJTableHeaderCell should return null from implemented methods getLocationOnScreen when the corresponding JTable is not visible
20-08-2012