You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by "Justin Mclean (JIRA)" <ji...@apache.org> on 2013/04/20 03:02:21 UTC

[jira] [Commented] (FLEX-22821) ObjectUtil - copy - Argument count mismatch when original class type is desired.

    [ https://issues.apache.org/jira/browse/FLEX-22821?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13637060#comment-13637060 ] 

Justin Mclean commented on FLEX-22821:
--------------------------------------

Confirmed still issue in Apache Flex 4.9.1
                
> ObjectUtil - copy - Argument count mismatch when original class type is desired.
> --------------------------------------------------------------------------------
>
>                 Key: FLEX-22821
>                 URL: https://issues.apache.org/jira/browse/FLEX-22821
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: .Unspecified - Framework
>    Affects Versions: Adobe Flex SDK 3.4 (Release)
>         Environment: Affected OS(s): Windows
> Affected OS(s): Windows XP
> Language Found: English
>            Reporter: Adobe JIRA
>              Labels: easytest
>
> Steps to reproduce:
> 1. create a class with non optional arguments in the constructor
> 	[RemoteClass(alias="MyTestClass")]
> 	public class MyTestClass
> 	{
> 		public function MyTestClass(type:String)
>                 {
> ...
> 2. create an instance
> 	var myTestClass:MyTestClass = new MyTestClass('test');
> 3. try to copy the instance by ObjectUtil.copy()
>  
> 	var myTestClassCopy:MyTestClass = ObjectUtil.copy(myTestClass) as MyTestClass;
>  Actual Results:
>  ArgumentError: Error #1063: Argument count mismatch on ...MyTestClass() Expected 1, got 0.
>  
>  Expected Results:
>  a copy form the object
>  
>  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