flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Harui (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (FLEX-34983) Variables get annotated incorrectly when the class name contains "String"
Date Fri, 11 Dec 2015 17:58:11 GMT

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

Alex Harui resolved FLEX-34983.
-------------------------------
       Resolution: Fixed
    Fix Version/s: Apache FalconJX 0.6.0

b5e8f73d1396e83290ad29b57a15db1fe5287673

> Variables get annotated incorrectly when the class name contains "String"
> -------------------------------------------------------------------------
>
>                 Key: FLEX-34983
>                 URL: https://issues.apache.org/jira/browse/FLEX-34983
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Falcon, FlexJS
>    Affects Versions: Apache FlexJS 0.5.0
>            Reporter: Andy Dufilie
>            Assignee: Alex Harui
>            Priority: Minor
>             Fix For: Apache FalconJX 0.6.0
>
>
> If you create a class with "String" in the name, the type gets annotated incorrectly.
> For example, create a class named "LinkableString" and it becomes "Linkablestring" in
the annotation, causing warnings as follows:
> AS Input:
> {code}
> var test:LinkableString = new LinkableString();
> {code}
> JS Output:
> {code}
> WARNING: C:\Weave\WeaveJS\bin\js-debug\WeaveTest.js:74: WARNING - Bad type annotation.
Unknown type weavejs.core.Linkablestring
>   var /** @type {weavejs.core.Linkablestring} */ test = new weavejs.core.LinkableString();
> {code}
> I believe the offending code is in mapBackToJS() in BaseReference.java:
> https://github.com/apache/flex-falcon/blob/808fd1601a0228883b06d061d0f6bd101888284e/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/BaseReference.java#L201



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

Mime
View raw message