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

would be nice to show error/warning for inproperly implemented custom runtimDPIProvider class

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Adobe Flex SDK Previous
    • None
    • Mobile: Density
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Create an AS class:

      package
      {
      /* Not extending RuntimeDPIProvider class */

      public class InvalidClass1
      {

      public function get runtimeDPI():Number

      { return 100; }

      }
      }

      2. Specify it as <s:Application runtimeDPIProvider="InvalidClass1" />
      3. Run the app.

      Actual Results: No overriding happens. The app just runs as normal.

      Expected Results: Since there is no warning or error, it may not be obvious if users unintentionally set an invalid class. I don't know if this is possible but it would be nice to inform users the class is not properly implemented.

      Workaround (if any):

      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: