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

compile time type checking does not always work in MXML

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK Previous
    • None
    • MXML Compiler
    • None
    • Affected OS(s): Windows
      Affected OS(s): Windows 7
      Language Found: English

    Description

      Steps to reproduce:
      1. Create an MXML application with the following content:
      <?xml version="1.0" encoding="utf-8"?>
      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">

      <s:Rect id="rect1" fill="

      {colorRed}

      " />
      <s:Rect id="rect2" fill="

      {arrayCollection}

      " /> <!-- will not raise a compile time error, but fails at runtime -->
      <s:Rect id="rect3" fill="

      {arrayCollection }

      " /> <!-- will raise a compile time error -->

      <fx:Declarations>
      <s:SolidColor id="colorRed" color="0xff0000" />
      <s:ArrayCollection id="arrayCollection" />
      </fx:Declarations>
      </s:Application>

      2. Compile the application

      Actual Results:

      rect3 will raise a compile time type cast error (1067)

      Expected Results:

      rect2 should also raise the compile time type cast error (1067), since the only different is white spaces.

      Workaround (if any):

      none

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: