flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-34581) Datespinner displayMode time and pt-PT locale
Date Thu, 11 Jun 2015 11:10:00 GMT

    [ https://issues.apache.org/jira/browse/FLEX-34581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14581826#comment-14581826
] 

ASF GitHub Bot commented on FLEX-34581:
---------------------------------------

GitHub user adpg opened a pull request:

    https://github.com/apache/flex-sdk/pull/19

    Update DateTimeFormatterEx.as

    Proposing patch for bug Apache Flex / FLEX-34581: DateSpinner crash when locale that uses
a 24-hour setting.
    
    Modification of public function getUse24HourFlag() of DateTimeFormatterEx.as to return
a Boolean value instead of an Object value.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/adpg/flex-sdk adpg-FLEX-34581-patch-1

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/flex-sdk/pull/19.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #19
    
----
commit 59ff4578920a45c68761fd4aa18f5421403c0cc6
Author: Ad Pijnenburg <pijnenburg@riom.nl>
Date:   2015-06-11T10:27:27Z

    Update DateTimeFormatterEx.as
    
    Proposing patch for bug Apache Flex / FLEX-34581: DateSpinner crash when locale that uses
a 24-hour setting.
    
    Updated public function getUse24HourFlag() of DateTimeFormatterEx.as to return a Boolean
value instead of an Object value.

----


> Datespinner displayMode time and pt-PT locale
> ---------------------------------------------
>
>                 Key: FLEX-34581
>                 URL: https://issues.apache.org/jira/browse/FLEX-34581
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Mobile: DateSpinner
>    Affects Versions: Apache Flex 4.13.0
>         Environment: Windows 7 64bit
> Flash builder 4.7 64bit
> AIR 15.0.0
> Flex 4.13
> iPad3
> Production ipa for adhoc testing (application crash)
> Debug in Standard Packaging method (crash with bug trace)
>            Reporter: Carlos Monteiro
>            Assignee: OmPrakash Muppirala
>            Priority: Critical
>         Attachments: FB414_DateTimeFormatterEx.as, FP414_DateSpinner.as, TestDateSpinner.fxp
>
>
> The problem is within s:DateSpinner with displayMode="time" and
> locale="pt-PT"
> If debugging in Fast Packaging Method The bug doesn't occur.
> If one builds a production ipa for adhoc testing the application crashes!
> If debug in Standard Packaging method the app crashes with bug trace.
> code:
> TestLocale.mxml
> <?xml version="1.0" encoding="utf-8"?>
> <s:ViewNavigatorApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
>                                                         xmlns:s="library://ns.adobe.com/flex/spark"
> firstView="views.TestLocaleHomeView" applicationDPI="160">
> </s:ViewNavigatorApplication>
> TestLocaleHomeView.mxml
> <?xml version="1.0" encoding="utf-8"?>
> <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
>                 xmlns:s="library://ns.adobe.com/flex/spark" title="HomeView">
>         <s:DateSpinner id="myDateSpinner" displayMode="time" locale="pt-PT"/>
> </s:View>
> Debug trace:
> [SWF] TestLocale.swf - 176,988 bytes after decompression
> TypeError: Error #2007: Parameter pattern must be non-null.
>         at spark.formatters::DateTimeFormatter/set
> dateTimePattern()[/Users/aharui/release4.13.0/frameworks/projects/spark/src/spark/formatters/DateTimeFormatter.as:476]
>         at
> spark.components::DateSpinner/generateAmPm()[/Users/aharui/release4.13.0/frameworks/projects/mobilecomponents/src/spark/components/DateSpinner.as:1237]
>         at
> spark.components::DateSpinner/populateDateItemLists()[/Users/aharui/release4.13.0/frameworks/projects/mobilecomponents/src/spark/components/DateSpinner.as:1120]
>         at
> spark.components::DateSpinner/commitProperties()[/Users/aharui/release4.13.0/frameworks/projects/mobilecomponents/src/spark/components/DateSpinner.as:778]
>         at
> mx.core::UIComponent/validateProperties()[/Users/aharui/release4.13.0/frameworks/projects/framework/src/mx/core/UIComponent.as:8751]
>         at mx.core::UIComponent/validateProperties()
>         at
> mx.managers::LayoutManager/validateProperties()[/Users/aharui/release4.13.0/frameworks/projects/framework/src/mx/managers/LayoutManager.as:605]
>         at
> mx.managers::LayoutManager/doPhasedInstantiation()[/Users/aharui/release4.13.0/frameworks/projects/framework/src/mx/managers/LayoutManager.as:791]
>         at
> mx.managers::LayoutManager/doPhasedInstantiationCallback()[/Users/aharui/release4.13.0/frameworks/projects/framework/src/mx/managers/LayoutManager.as:1188]
>         at mx.managers::LayoutManager/doPhasedInstantiationCallback()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message