On Fri, 20 Feb 2026 20:18:07 GMT, Phil Race <[email protected]> wrote:
>> src/java.desktop/share/classes/java/awt/image/DataBufferDouble.java line 332:
>>
>>> 330: */
>>> 331: public int getElem(int i) {
>>> 332: checkIndex(i);
>>
>> Shouldn't the `DataBuffer.getElem` method also specify `@throws
>> ArrayIndexOutOfBoundsException`?
>
> I don't see a need to touch the super-class spec. The method there doesn't
> actually throw anything.
> It just calls the abstract method getElem(int, int). So it is all down to the
> subclasses.
Is there a need to override this method in subclasses?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/29766#discussion_r2938489885