flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justin Mclean (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FLEX-34399) flash.swf.types.Rect gives different hashCode for .equal() instances
Date Wed, 16 Jul 2014 23:43:04 GMT

     [ https://issues.apache.org/jira/browse/FLEX-34399?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Justin Mclean updated FLEX-34399:
---------------------------------

    Labels: easyfix easytest  (was: )

> flash.swf.types.Rect gives different hashCode for .equal() instances
> --------------------------------------------------------------------
>
>                 Key: FLEX-34399
>                 URL: https://issues.apache.org/jira/browse/FLEX-34399
>             Project: Apache Flex
>          Issue Type: Bug
>    Affects Versions: Apache Flex 4.12.1
>            Reporter: Guest
>              Labels: easyfix, easytest
>
> Suppose two Rect objects have all the same coordinates.
> Compare their hashCode and compare them with equals.
> Actual result:
> .equals() returns true
> .hashCode() returns different values, because it incorporates Object's hashCode
> https://github.com/apache/flex-sdk/blob/develop/modules/swfutils/src/java/flash/swf/types/Rect.java#L105
> Expected result:
> .hashCode() is the same for both instances



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message