-
Bug
-
Resolution: Fixed
-
P3
-
1.1
-
beta
-
generic
-
solaris_10
A merlin bug fix (4287053) which was aimed at making JTabbedPane
exception throwing more consistent and clearly documented,
has resulted in an incompatibility that is causing problems for
at least two real applications we are aware of: IntelliJ and
JBuilder.
Essentially, the setSelectedIndex() method of JTabbedPane previously
accepted a value of -1 as valid, which was used internally to
clear the selection when no tabs were present. The fix modified
setSelectedIndex() to throw an IndexOutOfBoundsException for the
-1 case (consistent with other JTabbedPane methods).
Now that we've discovered programs were depending on this
undocumented behavior, we believe we should document and fix
setSelectedIndex() to again accept a value of -1 to clear the
selection.
exception throwing more consistent and clearly documented,
has resulted in an incompatibility that is causing problems for
at least two real applications we are aware of: IntelliJ and
JBuilder.
Essentially, the setSelectedIndex() method of JTabbedPane previously
accepted a value of -1 as valid, which was used internally to
clear the selection when no tabs were present. The fix modified
setSelectedIndex() to throw an IndexOutOfBoundsException for the
-1 case (consistent with other JTabbedPane methods).
Now that we've discovered programs were depending on this
undocumented behavior, we believe we should document and fix
setSelectedIndex() to again accept a value of -1 to clear the
selection.
- relates to
-
JDK-4287053 General Exception checking in JTabbedPane.java methods.
- Resolved