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

Compiler fails on pre-populated Vector

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: Adobe Flex SDK 3.6 (Release)
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Affected OS(s): Mac
      Affected OS(s): Mac OS 10.6
      Language Found: English

      Description

      Steps to reproduce:
      1. Create a pre-populated vector in the project, e.g. var elements : Vector.<Sprite> = new <Sprite>[el1, el2, el3];
      2. Compile the project

      Actual Results: compilation fails with:

      ERROR /Users/.../Main.as[13:48]:
      Syntax error: XML does not have matching begin and end tags.

      var elements : Vector.<Sprite> = new <Sprite>[el1, el2, el3];

      ERROR /Users/.../Main.as[13:48]:
      Syntax error: expecting rightbrace before end of program.

      var elements : Vector.<Sprite> = new <Sprite>[el1, el2, el3];

      ERROR /Users/.../Main.as[13:48]:
      Syntax error: expecting rightbrace before end of program.

      var elements : Vector.<Sprite> = new <Sprite>[el1, el2, el3];

      ERROR /Users/.../Main.as[13:48]:
      Syntax error: expecting rightbrace before end of program.

      var elements : Vector.<Sprite> = new <Sprite>[el1, el2, el3];

      Expected Results: since the documentation at http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/Vector.html#Vector() claims it should work with Flash Player 10, one could expect the above to work as well.

      Workaround (if any): Use Flex SDK 4.0+.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              adobejira Adobe JIRA
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: