incubator-flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ilya Tetin (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLEX-33200) Calling open() in Window subclass constructor yields runtime error:#2007: Parameter justificationStyle must be non-null.
Date Fri, 14 Sep 2012 15:00:09 GMT
Ilya Tetin created FLEX-33200:
---------------------------------

             Summary: Calling open() in Window subclass constructor yields runtime error:#2007:
Parameter justificationStyle must be non-null.
                 Key: FLEX-33200
                 URL: https://issues.apache.org/jira/browse/FLEX-33200
             Project: Apache Flex
          Issue Type: Bug
          Components: Spark: Window
    Affects Versions: Adobe Flex SDK 4.6 (Release)
         Environment: Adobe AIR 3.3 on Windows compiling with Flash Builder 4.5 plugin for
Eclipse 3.7
            Reporter: Ilya Tetin


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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message