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 2015/12/24 08:09:49 UTC
[jira] [Resolved] (FLEX-34995) call to Language.closure() generated
incorrectly when function is static
[ https://issues.apache.org/jira/browse/FLEX-34995?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alex Harui resolved FLEX-34995.
-------------------------------
Resolution: Fixed
Fix Version/s: Apache FalconJX 0.6.0
fa2f16f5c444e8f57e41ec05a3b1af02bc6efa63
> call to Language.closure() generated incorrectly when function is static
> ------------------------------------------------------------------------
>
> Key: FLEX-34995
> URL: https://issues.apache.org/jira/browse/FLEX-34995
> Project: Apache Flex
> Issue Type: Bug
> Components: Falcon, FlexJS
> Affects Versions: Apache FlexJS 0.5.0
> Reporter: Andy Dufilie
> Assignee: Alex Harui
> Fix For: Apache FalconJX 0.6.0
>
>
> AS input:
> {code}
> package foo.bar {
> public class TestClass {
> public static function test_nonstatic():void {
> var fn:Function = TestClass.staticFunction;
> }
>
> public static function staticFunction(a:Number, b:Number):Number {
> return a + b;
> }
> }
> }
> {code}
> JS output (relevant part only):
> {code}
> var /** @type {Function} */ fn = org.apache.flex.utils.Language.closure(foo.bar.TestClass.staticFunction, TestClass, 'TestClass');
> {code}
> In the JS code above, it should use {{foo.bar.TestClass}} instead of {{TestClass}}. The code will crash because the package is missing.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)