Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Adobe Flex SDK 3.0 (Release)
-
Affected OS(s): All OS Platforms
Affected OS(s): All OS Platforms
Language Found: English
Description
Steps To Reproduce: Use the following code:
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" initialize="this.testMe(event)">
<mx:Script><![CDATA[
import mx.utils.ObjectUtil;
import mx.events.FlexEvent;
public function testMe(e:FlexEvent):void
]]
></mx:Script>
</mx:Application>
The Tester class looks like this:
package
{
public dynamic class Tester extends Object
{
public function Tester()
}
}
Actual Results:
Compare=-1
Compare=0
Expected Results:
Compare=-1
Compare=1
Workaround (if any):
Call compare twice with parameters reversed to make sure the objects are equal. Could be costly time-wise though.