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

Bindings warning on constants inside conditional compilation block.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: Adobe Flex SDK Previous
    • Fix Version/s: None
    • Component/s: Data Binding
    • Labels:
      None
    • Environment:
      Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

      Description

      Steps to reproduce:
      1. Try doing something like this:
      CONFIG::local
      {
      private static const SEARCH_MOD:String = "http://localhost/SearchModule.swf";
      private static const ART_MOD:String = "http://localhost/ArtModule.swf";
      private static const USER_MOD:String = "http://localhost/UserModule.swf";
      private static const PAY_MOD:String = "http://localhost/PayModule.swf";
      }
      2. Use one of the constants in MXML:
      <fx:SWFLoader url="

      {SEARCH_MOD}

      "/>

      Actual Results:
      I'm getting the bindings warning "will be unable to detect...". This warning though is absolutely correct, does not appear when the constants are not within conditional block. Besides, there will be no changes in constants, so, the warning isn't needed - apparently, if there are no changes, the binding will never fail

      Expected Results:
      No warning.

      Workaround (if any):
      Well, you can make them constants variables (and therefore bind them).

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated: