You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Andy Dufilie (JIRA)" <ji...@apache.org> on 2015/12/11 06:32:11 UTC

[jira] [Updated] (FLEX-34985) "is" and "as" operators cross-compile incorrectly when using class member variables

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

Andy Dufilie updated FLEX-34985:
--------------------------------
    Summary: "is" and "as" operators cross-compile incorrectly when using class member variables  (was: "is" and "as" operators cros-compile incorrectly when using class member variables)

> "is" and "as" operators cross-compile incorrectly when using class member variables
> -----------------------------------------------------------------------------------
>
>                 Key: FLEX-34985
>                 URL: https://issues.apache.org/jira/browse/FLEX-34985
>             Project: Apache Flex
>          Issue Type: Bug
>            Reporter: Andy Dufilie
>
> When using "is" or "as" operators, the right operand cross-compiles incorrectly if it references a class member variable.
> Example code:
> {code}
> private var classDef:Class = String;
> public function test1(param:Object):Object
> {
> 	if (param is this.classDef)
> 		return param as this.classDef;
> 	return null;
> }
> {code}
> Cross-compiled:
> {code}
> WeaveTest.prototype.classDef;
> WeaveTest.prototype.test1 = function(param) {
>   if (org.apache.flex.utils.Language.is(param, classDef))
>     return org.apache.flex.utils.Language.as(param, classDef);
>   return null;
> };
> {code}
> The right operand becomes {{classDef}} instead of {{this.classDef}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)