On Thu, 21 May 2026 00:14:29 GMT, Sergey Bylokhov <[email protected]> wrote:

>> In the "description" of this PR I wrote
>> "The super-class SampleModel. createSubsetSampleModel is NOT updated because 
>> in fact one subclass behaves differently because it supports only one band."
>
> but description of that one subclass spec will overwrite the parent spec, no? 
> MultiPixelPackedSampleModel will be updated anyway that the bands parameter 
> is ignored and all possible validations of it will be skipped as well.

The method is abstract in the parent class.
It can never do anything, so it declares no exceptions, so I do not see a need 
for it to specify something it will and cannot do and impose that contract on 
its subclasses.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/30902#discussion_r3277990076

Reply via email to