You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Alex Harui (JIRA)" <ji...@apache.org> on 2013/09/11 00:21:53 UTC

[jira] [Resolved] (FLEX-33321) Falcon doesn't understand overridden setters

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

Alex Harui resolved FLEX-33321.
-------------------------------

    Resolution: Fixed

Patch accepted. 81d4d5f75ecc9669f279f9bfdbad2d13aaf0ef79
                
> Falcon doesn't understand overridden setters
> --------------------------------------------
>
>                 Key: FLEX-33321
>                 URL: https://issues.apache.org/jira/browse/FLEX-33321
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Falcon
>    Affects Versions: Apache Falcon 1.0
>            Reporter: Chema Balsas
>            Assignee: Alex Harui
>              Labels: Falcon
>             Fix For: Apache Falcon 1.0
>
>         Attachments: flex-33321.patch, OverridingSetters.as, OverridingSettersBase.as
>
>
> Falcon seems to have some problems when determining the return type of overridden setters.
> Try to compile OverridingSetters.as. The end result should show a small textfield with the text "Some text" in it. 
> When trying to compile with falcon, we get the following error and the compilation stops:
> Error: Implicit coercion of a value of type String to an unrelated type Function.
> 	    		txtfield.text = barFunc("text");
> A discovered workaround consists on creating a local variable using the getter first, like:
> var barFunc:Function = barFunc;
> txtfield.text = barFunc("text");

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