On Fri, 30 Jul 2021 08:40:34 GMT, Pankaj Bansal <pban...@openjdk.org> wrote:
>> src/java.desktop/share/classes/javax/swing/JTabbedPane.java line 1793: >> >>> 1791: >>> 1792: private void checkIndex(int index) { >>> 1793: Objects.checkIndex(index, pages.size()); >> >> I think we should not replace IOOBE checks with messages. Its better to keep >> it old way. > > Objects.checkIndex itself throws exceptions for wrong values. So this should > be ok. No? We have specific message here like "Tab count" which we are not passing and will be helpful for debugging in future. ------------- PR: https://git.openjdk.java.net/jdk/pull/4718