incubator-flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Harui (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FLEX-28950) ObjectUtil.compare throws RangeError: Error #1125 when comparing Vectors
Date Mon, 05 Nov 2012 19:44:12 GMT

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

Alex Harui updated FLEX-28950:
------------------------------

    Labels: EasyFix  (was: )
    
> ObjectUtil.compare throws RangeError: Error #1125 when comparing Vectors
> ------------------------------------------------------------------------
>
>                 Key: FLEX-28950
>                 URL: https://issues.apache.org/jira/browse/FLEX-28950
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Runtime Exceptions
>    Affects Versions: Adobe Flex SDK Previous
>         Environment: Affected OS(s): All OS Platforms
> Affected OS(s): All OS Platforms
> Browser: Other (specify version)
> Language Found: English
>            Reporter: Adobe JIRA
>              Labels: EasyFix
>
>       Steps to reproduce:
> 1. Run the following code:
> <?xml version="1.0" encoding="utf-8"?>
> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
> 			   xmlns:s="library://ns.adobe.com/flex/spark" 
> 			   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" creationComplete="creationCompleteHandler(event)">
> 	<fx:Script>
> 		<![CDATA[
> 			import mx.events.FlexEvent;
> 			import mx.utils.ObjectUtil;
> 			
> 			protected function creationCompleteHandler(event:FlexEvent):void
> 			{
> 				var vector1:Vector.<String> = new Vector.<String>();
> 				vector1.push("foo");
> 				vector1.push("bar");
> 				vector1.push("baz");
> 				
> 				var vector2:Vector.<String> = new Vector.<String>();
> 				vector2.push("foo");
> 				vector2.push("bar");
> 				// Do not add the third item
> 				
> 				trace("Compare vector1 to vector2: "+ObjectUtil.compare(vector1, vector2));
> 			}
> 		]]
>       >
> 	</fx:Script>
> 	<fx:Declarations>
> 		<!-- Place non-visual elements (e.g., services, value objects) here -->
> 	</fx:Declarations>
> </s:Application>
>  
>  Actual Results:
>  RangeError: Error #1125: The index 2 is out of range 2.
> 	at
> mx.utils::ObjectUtil$/internalCompare()[/c/bb02na1a/vol/sas/day/vert-d3flxcmn32/
> Products/Commons.Flex/ThirdParty/FlexSDK/framework/src/mx/utils/ObjectUtil.as:83
> 1]
> 	at
> mx.utils::ObjectUtil$/compare()[/c/bb02na1a/vol/sas/day/vert-d3flxcmn32/Products
> /Commons.Flex/ThirdParty/FlexSDK/framework/src/mx/utils/ObjectUtil.as:94]
>  
>  Expected Results:
>  No runtime error 
>  
>  Workaround (if any):
>  None
>     

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message