Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-34858

Adding a subclass of a Vector's type to the Vector in MXML results in an internal build error

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Apache Flex 4.14.1
    • Apache Flex 4.15.0
    • MXML Compiler
    • None

    Description

      The subclass doen't get detected as a dependency.

      Example MXML that causes build error:

      <fx:Vector type="mx.core.UIComponent">
      <s:Button/>
      </fx:Vector>

      I discovered that it will work fine if another Button is added elsewhere in the MXML document. Somehow the Vector's items aren't being checked for dependencies.

      It may be fixed by passing the VectorNode to the same analyze() function used for ArrayNode in the private DependencyAnalyzer class in InterfaceCompiler at the end of the analyze() function for VectorNode. There is no analyze() function for ArrayNode, so it must fall back to the version with the parameter typed as Node. The analyze() function for VectorNode only grabs the Vector's type as a dependency and doesn't look at the items added to the Vector.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            joshtynjala Josh Tynjala
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment