[OpenJDK 2D-Dev] RFR: 8263981: java.awt.image.ComponentSampleModel equals/hashcode use numBands twice

Aleksey Shipilev shade at openjdk.java.net
Tue Mar 23 06:52:48 UTC 2021

On Mon, 22 Mar 2021 18:01:49 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

>> I am a bit confused by this comment :) I suspect that `equals` got duplicated `numBands` first, and then whoever did the `hashcode` just hashed the same fields in the same order, duplicating it again.
> I hope so, and not in the opposite order. I'll try to check the history f this file.

Please do. I'll wait for a bit.


PR: https://git.openjdk.java.net/jdk/pull/3125

More information about the 2d-dev mailing list