Integrated: 7083187: Class CSS.CssValue is missing implementations of equals() and hashCode()

Prasanta Sadhukhan psadhukhan at openjdk.org
Mon Jun 19 08:55:34 UTC 2023


On Mon, 10 Apr 2023 12:44:08 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

> Two CSS AttributeSet-s can be compared using the AttributeSet.isEqual() method which can fail due to missing implementation of equals method in CSS subclasses.
> In this issue, even when two CSS AttributeSet has same 42 font size string value, Object equality fails.
> Fixed by implementing the equality and hashCode method for CSS.FontSize class.
> 
> All jtreg/jck tests are ok

This pull request has now been integrated.

Changeset: d2a858e1
Author:    Prasanta Sadhukhan <psadhukhan at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/d2a858e173ae10c577d7a3d14eb87ab5c3f60062
Stats:     264 lines in 2 files changed: 264 ins; 0 del; 0 mod

7083187: Class CSS.CssValue is missing implementations of equals() and hashCode()

Co-authored-by: Alexey Ivanov <aivanov at openjdk.org>
Reviewed-by: aivanov, prr

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

PR: https://git.openjdk.org/jdk/pull/13405



More information about the client-libs-dev mailing list