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

when swc cache is enabled, the compiler does not pick up changes to conditional compilation arguments.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK Previous
    • Compiler API
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Compile attached files using:
      javac -classpath <path to flex-compiler-oem.java> OEMTest.java

      2. Run using:
      java -cp .:<path to flex-compiler-oem.java> OEMTest

      Actual Results:
      Loading configuration file /Users/hero/frameworks/flex-config.xml
      /Users/gauravj/Downloads/ConditionalExcludeSprite.as(26): col: 19 Error: Duplicate function definition.

      public function createShapes():void
      ^

      compiler error? true
      Loading configuration file /Users/hero/frameworks/flex-config.xml
      /Users/gauravj/Downloads/ConditionalExcludeSprite.as(25): col: 11 Error: Access of undefined property Ellipse.

      SHAPES::Ellipse
      ^

      compiler error? true
      Loading configuration file /Users/hero/frameworks/flex-config.xml
      compiler error? false
      Loading configuration file /Users/hero/frameworks/flex-config.xml
      compiler error? false

      The last compilation succeeds even though the conditional arguments are cleared.

      Expected Results:
      The last compilation should fail.

      Workaround (if any):
      Modify the java file and comment the swc cache..

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: