You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by unomonteiro <un...@gmail.com> on 2014/10/06 18:51:03 UTC

Datespinner displayMode bug

This bug is somewhat hard to find.
If I debug in Fast Packaging method it doesn't occur.

Built with Windows 7 64bit, Flash builder 4.7, AIR 15.0.0, Flex 4.13.
Conditions to provoque error:
- on iOS devices (tested with iPad3) 
- production ipa for adhoc testing (application crash)
- debug in Standard Packaging method (crash with bug trace)

The problem is within s:DateSpinner with displayMode="time" and
locale="pt-PT"


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()



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Datespinner-displayMode-bug-tp8309.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: Datespinner displayMode bug

Posted by KKoopman <ka...@oliver-it.nl>.
Because we need a quick solution I decided to use the airSDK version 14, this
solved the issue.



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Datespinner-displayMode-bug-tp8309p8583.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: Datespinner displayMode bug

Posted by KKoopman <ka...@oliver-it.nl>.
I have the exact same error for nl-NL. At debug  (Standard Packaging method)
I found that it is caused by use24HourTime =
dateTimeFormatterEx.getUse24HourFlag();​  at line 756 of the DateSpinner.as.
Within the dateTimeFormatterEx.getUse24HourFlag()  method a true is returned
(Hour format is HH) however the use24HourTime remains false.

If I change the use24HourTime variable value in the debugger to true then
the time spinner appears on my IPad and the error does not appear. It looks
like that the compiled classed differ from the sources.







--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Datespinner-displayMode-bug-tp8309p8568.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: Datespinner displayMode bug

Posted by "henrik.wild" <hw...@panogate.de>.
I can confirm this for /displayMode="dateAndTime"/ and /locale="de_DE"/.



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Datespinner-displayMode-bug-tp8309p8569.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.