[ https://issues.apache.org/jira/browse/FLEX-34985?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alex Harui resolved FLEX-34985.
-------------------------------
Resolution: Fixed
24bc509464a72dadc8fd35ceecd30976a0233151
> "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
> Components: Falcon, FlexJS
> Affects Versions: Apache FlexJS 0.5.0
> Reporter: Andy Dufilie
> Assignee: Alex Harui
>
> 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)
|