Re: [9] RFR 8038436: Re-examine the mechanism to determine available localedata and cldrdata

2014-09-02 Thread Naoto Sato
On 9/2/14, 11:48 AM, Mandy Chung wrote: GensrcCLDR.gmk and GensrcLocaleDataMetaInfo.gmk generate sources for java.base and jdk.localedata. I think we should re-examine to modify the tool e.g. to take an input parameter specifying which locales or module the source is generated for. This will ma

Re: [9] RFR 8038436: Re-examine the mechanism to determine available localedata and cldrdata

2014-09-02 Thread Mandy Chung
On 8/29/14 2:07 PM, Naoto Sato wrote: I incorporated the suggestions from Mandy and Alan. Also one change since the last webrev was to revert the hard-coding of the supported locales list back to the one which dynamically generates the lists at the build time. I initially thought static listing

Re: [9] RFR 8038436: Re-examine the mechanism to determine available localedata and cldrdata

2014-09-02 Thread Naoto Sato
On 8/31/14, 11:46 PM, Masayoshi Okutsu wrote: Do we need availableLocalesTests() of Bug8038436.java? I think it's rather a burden to maintain the hard-coded tags in the test. I think it's worthy to have such test that have golden data in it. I don't think there would be much changes in JRE pro

Re: [9] RFR 8038436: Re-examine the mechanism to determine available localedata and cldrdata

2014-09-02 Thread Naoto Sato
On 8/30/14, 5:47 AM, Alan Bateman wrote: On 29/08/2014 22:07, Naoto Sato wrote: I incorporated the suggestions from Mandy and Alan. Also one change since the last webrev was to revert the hard-coding of the supported locales list back to the one which dynamically generates the lists at the build

Re: [9] RFR 8038436: Re-examine the mechanism to determine available localedata and cldrdata

2014-09-01 Thread Erik Joelsson
The reintroduction of the dynamic list looks ok from a build point of view. /Erik On 2014-08-29 23:07, Naoto Sato wrote: I incorporated the suggestions from Mandy and Alan. Also one change since the last webrev was to revert the hard-coding of the supported locales list back to the one which d

Re: [9] RFR 8038436: Re-examine the mechanism to determine available localedata and cldrdata

2014-08-31 Thread Masayoshi Okutsu
Do we need availableLocalesTests() of Bug8038436.java? I think it's rather a burden to maintain the hard-coded tags in the test. Otherwise, the fix looks good to me. Thanks, Masayoshi On 8/30/2014 6:07 AM, Naoto Sato wrote: I incorporated the suggestions from Mandy and Alan. Also one change s

Re: [9] RFR 8038436: Re-examine the mechanism to determine available localedata and cldrdata

2014-08-30 Thread Alan Bateman
On 29/08/2014 22:07, Naoto Sato wrote: I incorporated the suggestions from Mandy and Alan. Also one change since the last webrev was to revert the hard-coding of the supported locales list back to the one which dynamically generates the lists at the build time. I initially thought static listin

Re: [9] RFR 8038436: Re-examine the mechanism to determine available localedata and cldrdata

2014-08-29 Thread Naoto Sato
I incorporated the suggestions from Mandy and Alan. Also one change since the last webrev was to revert the hard-coding of the supported locales list back to the one which dynamically generates the lists at the build time. I initially thought static listing of locales would be less complex as t

Re: [9] RFR 8038436: Re-examine the mechanism to determine available localedata and cldrdata

2014-08-29 Thread Naoto Sato
On 8/29/14, 6:29 AM, Alan Bateman wrote: I'm still not sure about CLDRLocaleProviderAdapter throwing UOE when iterating over the installed LocaleDataMetaInfo implementations fail. It almost feels like it should be an InternalError as it could only mean something wrong with the JDK code or someth

Re: [9] RFR 8038436: Re-examine the mechanism to determine available localedata and cldrdata

2014-08-29 Thread Naoto Sato
On 8/28/14, 5:11 PM, Mandy Chung wrote: Naoto, This looks better. Thanks for the update. The getSupportedLocaleString method in both EnLocaleDataMetaInfo and NonEnLocaleDataMetaInfo has the javadoc that missing the description. sun.util.locale.provider is a package in java.base and NonEnLocal

Re: [9] RFR 8038436: Re-examine the mechanism to determine available localedata and cldrdata

2014-08-29 Thread Alan Bateman
On 28/08/2014 19:34, Naoto Sato wrote: Thank you, Mandy, Masayoshi, and Alan for your comments. I revised the changes based on your suggestions as follows: http://cr.openjdk.java.net/~naoto/8038436/webrev.4/ Here are the changes since webrev.3 - CLDRLocaleProviderAdapter.java: modified to thr

Re: [9] RFR 8038436: Re-examine the mechanism to determine available localedata and cldrdata

2014-08-29 Thread Erik Joelsson
From a build point of view, this looks fine. /Erik On 2014-08-28 20:34, Naoto Sato wrote: Thank you, Mandy, Masayoshi, and Alan for your comments. I revised the changes based on your suggestions as follows: http://cr.openjdk.java.net/~naoto/8038436/webrev.4/ Here are the changes since webrev

Re: [9] RFR 8038436: Re-examine the mechanism to determine available localedata and cldrdata

2014-08-28 Thread Mandy Chung
Naoto, This looks better. Thanks for the update. The getSupportedLocaleString method in both EnLocaleDataMetaInfo and NonEnLocaleDataMetaInfo has the javadoc that missing the description. sun.util.locale.provider is a package in java.base and NonEnLocaleDataMetaInfo has to be in a different

Re: [9] RFR 8038436: Re-examine the mechanism to determine available localedata and cldrdata

2014-08-28 Thread Naoto Sato
Thank you, Mandy, Masayoshi, and Alan for your comments. I revised the changes based on your suggestions as follows: http://cr.openjdk.java.net/~naoto/8038436/webrev.4/ Here are the changes since webrev.3 - CLDRLocaleProviderAdapter.java: modified to throw UnsupportedOperationException with t

Re: [9] RFR 8038436: Re-examine the mechanism to determine available localedata and cldrdata

2014-08-25 Thread Alan Bateman
On 22/08/2014 19:46, Naoto Sato wrote: Hello, Please review the changes for the following issue: https://bugs.openjdk.java.net/browse/JDK-8038436 The proposed changes are located at: http://cr.openjdk.java.net/~naoto/8038436/webrev.3/ The idea is to introduce an SPI so that supported locales

Re: [9] RFR 8038436: Re-examine the mechanism to determine available localedata and cldrdata

2014-08-25 Thread Masayoshi Okutsu
Here are my comments. - Looks like this change removed the 8055088 fix for BreakIteratorInfo optimization. - The langtags field in each *Impl class should be volatile. - DateFormatProviderImpl has static langtags to be shared by some other *Impl. But JRE and CLDR have different sets of langu

Re: [9] RFR 8038436: Re-examine the mechanism to determine available localedata and cldrdata

2014-08-22 Thread Naoto Sato
On 8/22/14, 3:56 PM, Mandy Chung wrote: A service config file can contain multiple provider implementation classes. JDI connector is one example: http://hg.openjdk.java.net/jdk9/dev/jdk/file/74078474d9bd/src/jdk.jdi/share/classes/META-INF/services/com.sun.jdi.connect.Connector There may be som

Re: [9] RFR 8038436: Re-examine the mechanism to determine available localedata and cldrdata

2014-08-22 Thread Mandy Chung
On 8/22/14 3:37 PM, Naoto Sato wrote: I wonder ifavailableLanguageTags andgetSupportedLocaleString should return a list or an array of String (see comment below). There are two provider implementations for sun.util.locale.provider.LocaleDataMetaInfo and two service config files as yo

Re: [9] RFR 8038436: Re-examine the mechanism to determine available localedata and cldrdata

2014-08-22 Thread Naoto Sato
Thank you Mandy for a quick review. Please see my comments below. On 8/22/14, 2:26 PM, Mandy Chung wrote: On 8/22/14 11:46 AM, Naoto Sato wrote: http://cr.openjdk.java.net/~naoto/8038436/webrev.3/ I skimmed on the patch and have a few initial comment/questions. JREENLocaleDataMetaInfo JRENo

Re: [9] RFR 8038436: Re-examine the mechanism to determine available localedata and cldrdata

2014-08-22 Thread Mandy Chung
On 8/22/14 11:46 AM, Naoto Sato wrote: http://cr.openjdk.java.net/~naoto/8038436/webrev.3/ I skimmed on the patch and have a few initial comment/questions. JREENLocaleDataMetaInfo JRENonENLocaleDataMetaInfo - are the lists of locale names generated previously? The long lines need to be

[9] RFR 8038436: Re-examine the mechanism to determine available localedata and cldrdata

2014-08-22 Thread Naoto Sato
Hello, Please review the changes for the following issue: https://bugs.openjdk.java.net/browse/JDK-8038436 The proposed changes are located at: http://cr.openjdk.java.net/~naoto/8038436/webrev.3/ The idea is to introduce an SPI so that supported locales are dynamically searched at runtime, n