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

Calling open() in Window subclass constructor yields runtime error:#2007: Parameter justificationStyle must be non-null.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • Adobe Flex SDK 4.6 (Release)
    • None
    • Spark: Window
    • None
    • Adobe AIR 3.3 on Windows compiling with Flash Builder 4.5 plugin for Eclipse 3.7

    Description

      Steps to reproduce:
      1. Subclass spark.components.Window:

      package test
      {
      import spark.components.Window;

      public class ExtWindow extends Window
      {
      public function ExtWindow()

      { super(); open(); }

      }
      }

      2. Run the following sample application:

      <?xml version="1.0" encoding="utf-8"?>
      <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:mx="library://ns.adobe.com/flex/mx"
      xmlns:test="test.*">
      <fx:Declarations>
      <test:ExtWindow/>
      </fx:Declarations>
      </s:WindowedApplication>

      Output:
      TypeError: Error #2007: Parameter justificationStyle must be non-null.
      at flash.text.engine::EastAsianJustifier/set justificationStyle()
      at spark.components::Label/createTextLines()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\Label.as:879]
      at spark.components::Label/http://www.adobe.com/2006/flex/mx/internal::composeTextLines()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\Label.as:477]
      at spark.components.supportClasses::TextBase/measure()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\supportClasses\TextBase.as:534]
      at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::measureSizes()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:8506]
      at mx.core::UIComponent/validateSize()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:8430]
      at mx.managers::LayoutManager/validateSize()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:665]
      at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:792]
      at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1180]

      Expected results:
      no error

      Attachments

        Activity

          People

            mschmalle Michael Schmalle
            hunternif Ilya Tetin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: