Return-Path: X-Original-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A3510D626 for ; Thu, 27 Sep 2012 10:18:09 +0000 (UTC) Received: (qmail 92284 invoked by uid 500); 27 Sep 2012 10:18:08 -0000 Delivered-To: apmail-incubator-flex-dev-archive@incubator.apache.org Received: (qmail 92248 invoked by uid 500); 27 Sep 2012 10:18:08 -0000 Mailing-List: contact flex-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: flex-dev@incubator.apache.org Delivered-To: mailing list flex-dev@incubator.apache.org Received: (qmail 92225 invoked by uid 99); 27 Sep 2012 10:18:08 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Sep 2012 10:18:08 +0000 Date: Thu, 27 Sep 2012 21:18:08 +1100 (NCT) From: "Michael Schmalle (JIRA)" To: flex-dev@incubator.apache.org Message-ID: <2089981495.133106.1348741088157.JavaMail.jiratomcat@arcas> In-Reply-To: <506450993.80574.1347634809705.JavaMail.jiratomcat@arcas> Subject: [jira] [Closed] (FLEX-33200) Calling open() in Window subclass constructor yields runtime error:#2007: Parameter justificationStyle must be non-null. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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: > > xmlns:s="library://ns.adobe.com/flex/spark" > xmlns:mx="library://ns.adobe.com/flex/mx" > xmlns:test="test.*"> > > > > > 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