RFR: 6218162: DefaultTableColumnModel.getColumn() method should mention ArrayIndexOutOfBoundsException [v2]
Phil Race
prr at openjdk.java.net
Fri Feb 25 23:09:54 UTC 2022
On Fri, 25 Feb 2022 04:51:56 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
>> If invalid ie 0 or > getColumnCount() index is passed to DefaultTableColumnModel.getColumn() then it returns AIOBE in current implementation which should be documented in the spec. Fixed the spec to mention the exception.
>
> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:
>
> Fix javadoc
src/java.desktop/share/classes/javax/swing/table/DefaultTableColumnModel.java line 294:
> 292: * at <code>columnIndex</code>
> 293: * @exception ArrayIndexOutOfBoundsException if <code>columnIndex</code>
> 294: * is out of range:
As Joe Darcy pointed out, we use @throws these days.
-------------
PR: https://git.openjdk.java.net/jdk/pull/7587
More information about the client-libs-dev
mailing list