JDK-2147479 : REGRESSION: JTabbedPane throws ArrayIndexOutOfBoundsException
  • Type: Backport
  • Backport of: JDK-6495408
  • Component: client-libs
  • Sub-Component: javax.swing
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2007-03-12
  • Updated: 2011-03-07
  • Resolved: 2011-03-07
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 6 JDK 7
6u14Fixed 7 b15Fixed
Comments
EVALUATION For the root of the problem please see evaluation for 4962642 The fix for 4962642 is incomplete, it doesn't take into account the case when null component is added to a JTabbedPane see JTabbedPane.insertTab() if (component != null) { addImpl(component, null, -1); component.setVisible(false); } if component is null we don't call addImpl and BasicTabbedPane.Handler.componentAdded() is not called as well -> isRunsDirty is not set to true which causes the problem
12-03-2007