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] [Created] (FLEX-34983) Variables get annotated incorrectly when the class name contains "String"
Date Fri, 11 Dec 2015 04:17:10 GMT
Andy Dufilie created FLEX-34983:

             Summary: 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
            Priority: Minor

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:

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();

I believe the offending code is in mapBackToJS() in BaseReference.java:


This message was sent by Atlassian JIRA

View raw message