You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Justin Mclean (JIRA)" <ji...@apache.org> on 2014/07/17 01:43:04 UTC

[jira] [Updated] (FLEX-34399) flash.swf.types.Rect gives different hashCode for .equal() instances

     [ 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)