flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guest (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLEX-34399) flash.swf.types.Rect gives different hashCode for .equal() instances
Date Tue, 08 Jul 2014 00:33:33 GMT
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)

Mime
View raw message