You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Guest (JIRA)" <ji...@apache.org> on 2014/07/08 02:33:33 UTC

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

Guest created FLEX-34399:
----------------------------

             Summary: 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


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)