Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Adobe Flex SDK Previous
-
None
-
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="
" /> <!-- will not raise a compile time error, but fails at runtime -->
<s:Rect id="rect3" fill="
" /> <!-- 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