[
https://issues.apache.org/jira/browse/FLEX-33200?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Schmalle closed FLEX-33200.
-----------------------------------
Resolution: Not A Problem
Assignee: Michael Schmalle
Calling open() in a constructor is not the correct way of opening a window.
> 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
> Assignee: Michael Schmalle
>
> 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