Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Adobe Flex SDK Previous
-
None
-
Affected OS(s): All OS Platforms
Language Found: English
Description
Steps to reproduce:
1. Compile attached test cases using:
javac -classpath <path to flex-compiler-oem.jar> OEMTest.java
2. Run using:
java -cp .:<path to flex-compiler-oem.jar> OEMTest
Actual Results:
Loading configuration file /Users/gauravj/depot/flex/hero_private/frameworks/flex-config.xml
Loading configuration file /Users/gauravj/Downloads/Cache/conditionalcompilation/conditional-config.xml
/Users/gauravj/Downloads/Cache/TestComponents/cc/ColoredButton.as(7): col: 40 Error: Access of undefined property Version.
private var version:String = CONFIG::Version;
^
compiler error was expected: true
Loading configuration file /Users/gauravj/depot/flex/hero_private/frameworks/flex-config.xml
Loading configuration file /Users/gauravj/Downloads/Cache/conditionalcompilation/conditional-config.xml
compiler error was not expected: true
Loading configuration file /Users/gauravj/depot/flex/hero_private/frameworks/flex-config.xml
Loading configuration file /Users/gauravj/Downloads/Cache/conditionalcompilation/conditional-config.xml
/Users/gauravj/Downloads/Cache/ConditionalCompileApp.mxml
Dependency '[, AS3, flash.accessibility, flash.debugger, flash.display, flash.errors, flash.events, flash.external, flash.filters, flash.geom, flash.media, flash.net, flash.printing, flash.profiler, flash.system, flash.text, flash.ui, flash.utils, flash.xml, mx.binding, mx.styles, mx.core]::IFlexModuleFactory' not cached.
Files changed: 0 Files affected: 1
compiler error was expected: false
Expected Results:
ERROR AFTER SECOND INCREMENTAL COMPILE (because the config definition for VERSION is unset)
Loading configuration file /Users/gauravj/depot/flex/hero_private/frameworks/flex-config.xml
Loading configuration file /Users/gauravj/Downloads/Cache/conditionalcompilation/conditional-config.xml
/Users/gauravj/Downloads/Cache/TestComponents/cc/ColoredButton.as(7): col: 40 Error: Access of undefined property Version.
private var version:String = CONFIG::Version;
^
compiler error was expected: true
Loading configuration file /Users/gauravj/depot/flex/hero_private/frameworks/flex-config.xml
Loading configuration file /Users/gauravj/Downloads/Cache/conditionalcompilation/conditional-config.xml
compiler error was not expected: true
Loading configuration file /Users/gauravj/depot/flex/hero_private/frameworks/flex-config.xml
Loading configuration file /Users/gauravj/Downloads/Cache/conditionalcompilation/conditional-config.xml
/Users/gauravj/Downloads/Cache/TestComponents/cc/ColoredButton.as(7): col: 40 Error: Access of undefined property Version.
private var version:String = CONFIG::Version;
^
compiler error was expected: true
Workaround (if any):
comment application cache.. comment the two lines in the java file.