flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Dufilie (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-35012) Classes internal to a package-level function get null package
Date Mon, 18 Jan 2016 17:07:39 GMT

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

Andy Dufilie commented on FLEX-35012:
-------------------------------------

I believe this commit may fix the issue, but I am unable to test it at the moment.

https://github.com/adufilie/flex-falcon/commit/e11c420ba9843665af09d090ce4c8216f420d749

> Classes internal to a package-level function get null package
> -------------------------------------------------------------
>
>                 Key: FLEX-35012
>                 URL: https://issues.apache.org/jira/browse/FLEX-35012
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: FalconJX
>    Affects Versions: Apache FalconJX 0.5.0
>            Reporter: Andy Dufilie
>            Priority: Minor
>
> AS input:
> {code}
> package foo.bar {
> 	public function testPackageLevelFunction():Number {
> 		return Internal.x;
> 	}
> }
> internal class Internal {
> 	public static const x:Number = 3;
> }
> {code}
> Incorrect JS output:
> {code}
> goog.provide('foo.bar.testPackageLevelFunction');
> foo.bar.testPackageLevelFunction = function() {
>   return null.Internal.x;
> }
> null.Internal = function() {
> };
> null.Internal.x = 3;
> null.Internal.prototype.FLEXJS_CLASS_INFO = { names: [{ name: 'Internal', qName: 'null.Internal'}]
};
> {code}



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

Mime
View raw message