author | duke |
Wed, 05 Jul 2017 22:06:37 +0200 | |
changeset 40471 | ad45133ff99e |
parent 40261 | 86a49ba76f52 |
permissions | -rw-r--r-- |
17933 | 1 |
#!/bin/sh |
13583 | 2 |
# |
34878
7d7e55ff253a
8039301: [ja] Host Locale Provider uses non-translated Calendar field names
naoto
parents:
33494
diff
changeset
|
3 |
# Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved. |
13583 | 4 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
5 |
# |
|
6 |
# This code is free software; you can redistribute it and/or modify it |
|
7 |
# under the terms of the GNU General Public License version 2 only, as |
|
8 |
# published by the Free Software Foundation. |
|
9 |
# |
|
10 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
|
11 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
12 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
13 |
# version 2 for more details (a copy is included in the LICENSE file that |
|
14 |
# accompanied this code). |
|
15 |
# |
|
16 |
# You should have received a copy of the GNU General Public License version |
|
17 |
# 2 along with this work; if not, write to the Free Software Foundation, |
|
18 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
19 |
# |
|
20 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
|
21 |
# or visit www.oracle.com if you need additional information or have any |
|
22 |
# questions. |
|
23 |
# |
|
24 |
# |
|
25 |
# @test |
|
31263 | 26 |
# @bug 6336885 7196799 7197573 7198834 8000245 8000615 8001440 8008577 |
34878
7d7e55ff253a
8039301: [ja] Host Locale Provider uses non-translated Calendar field names
naoto
parents:
33494
diff
changeset
|
27 |
# 8010666 8013086 8013233 8013903 8015960 8028771 8054482 8062006 |
36735
517aee24e7b1
8152873: java/util/Locale/LocaleProviders.sh fails after JDK-8150432
amlu
parents:
36733
diff
changeset
|
28 |
# 8150432 |
13583 | 29 |
# @summary tests for "java.locale.providers" system property |
36511 | 30 |
# @modules java.base/sun.util.locale |
31 |
# java.base/sun.util.locale.provider |
|
32 |
# @compile LocaleProviders.java |
|
13583 | 33 |
# @run shell/timeout=600 LocaleProviders.sh |
34 |
||
35 |
if [ "${TESTSRC}" = "" ] |
|
36 |
then |
|
37 |
echo "TESTSRC not set. Test cannot execute. Failed." |
|
38 |
exit 1 |
|
39 |
fi |
|
40 |
echo "TESTSRC=${TESTSRC}" |
|
41 |
if [ "${TESTJAVA}" = "" ] |
|
42 |
then |
|
43 |
echo "TESTJAVA not set. Test cannot execute. Failed." |
|
44 |
exit 1 |
|
45 |
fi |
|
15254
3997a6f357cb
8005978: shell tests need to use the $COMPILEJDK for javac, jar and other tools
alanb
parents:
14786
diff
changeset
|
46 |
if [ "${COMPILEJAVA}" = "" ] |
3997a6f357cb
8005978: shell tests need to use the $COMPILEJDK for javac, jar and other tools
alanb
parents:
14786
diff
changeset
|
47 |
then |
3997a6f357cb
8005978: shell tests need to use the $COMPILEJDK for javac, jar and other tools
alanb
parents:
14786
diff
changeset
|
48 |
COMPILEJAVA="${TESTJAVA}" |
3997a6f357cb
8005978: shell tests need to use the $COMPILEJDK for javac, jar and other tools
alanb
parents:
14786
diff
changeset
|
49 |
fi |
13583 | 50 |
echo "TESTJAVA=${TESTJAVA}" |
51 |
if [ "${TESTCLASSES}" = "" ] |
|
52 |
then |
|
53 |
echo "TESTCLASSES not set. Test cannot execute. Failed." |
|
54 |
exit 1 |
|
55 |
fi |
|
56 |
echo "TESTCLASSES=${TESTCLASSES}" |
|
57 |
echo "CLASSPATH=${CLASSPATH}" |
|
58 |
||
59 |
# set platform-dependent variables |
|
60 |
OS=`uname -s` |
|
61 |
case "$OS" in |
|
22602
0d9a07b0d7e9
8028537: PPC64: Updated the JDK regression tests to run on AIX
simonis
parents:
21853
diff
changeset
|
62 |
SunOS | Linux | *BSD | Darwin | AIX ) |
13583 | 63 |
PS=":" |
64 |
FS="/" |
|
65 |
;; |
|
66 |
Windows* | CYGWIN* ) |
|
67 |
PS=";" |
|
68 |
FS="\\" |
|
69 |
;; |
|
70 |
* ) |
|
71 |
echo "Unrecognized system!" |
|
72 |
exit 1; |
|
73 |
;; |
|
74 |
esac |
|
75 |
||
17440
fb37aa6b305e
8013086: NPE thrown by SimpleDateFormat with TimeZoneNameProvider supplied
naoto
parents:
17169
diff
changeset
|
76 |
# create SPI implementations |
14185
916ec0a4d039
8000245: SimpleDateFormat.format(date, StringBuffer, FieldPosition) doesn't work as expected with custom extensions
naoto
parents:
14028
diff
changeset
|
77 |
mk() { |
916ec0a4d039
8000245: SimpleDateFormat.format(date, StringBuffer, FieldPosition) doesn't work as expected with custom extensions
naoto
parents:
14028
diff
changeset
|
78 |
d=`dirname $1` |
916ec0a4d039
8000245: SimpleDateFormat.format(date, StringBuffer, FieldPosition) doesn't work as expected with custom extensions
naoto
parents:
14028
diff
changeset
|
79 |
if [ ! -d $d ]; then mkdir -p $d; fi |
916ec0a4d039
8000245: SimpleDateFormat.format(date, StringBuffer, FieldPosition) doesn't work as expected with custom extensions
naoto
parents:
14028
diff
changeset
|
80 |
cat - >$1 |
916ec0a4d039
8000245: SimpleDateFormat.format(date, StringBuffer, FieldPosition) doesn't work as expected with custom extensions
naoto
parents:
14028
diff
changeset
|
81 |
} |
916ec0a4d039
8000245: SimpleDateFormat.format(date, StringBuffer, FieldPosition) doesn't work as expected with custom extensions
naoto
parents:
14028
diff
changeset
|
82 |
|
916ec0a4d039
8000245: SimpleDateFormat.format(date, StringBuffer, FieldPosition) doesn't work as expected with custom extensions
naoto
parents:
14028
diff
changeset
|
83 |
SPIDIR=${TESTCLASSES}${FS}spi |
916ec0a4d039
8000245: SimpleDateFormat.format(date, StringBuffer, FieldPosition) doesn't work as expected with custom extensions
naoto
parents:
14028
diff
changeset
|
84 |
rm -rf ${SPIDIR} |
916ec0a4d039
8000245: SimpleDateFormat.format(date, StringBuffer, FieldPosition) doesn't work as expected with custom extensions
naoto
parents:
14028
diff
changeset
|
85 |
mk ${SPIDIR}${FS}src${FS}tznp.java << EOF |
916ec0a4d039
8000245: SimpleDateFormat.format(date, StringBuffer, FieldPosition) doesn't work as expected with custom extensions
naoto
parents:
14028
diff
changeset
|
86 |
import java.util.spi.TimeZoneNameProvider; |
916ec0a4d039
8000245: SimpleDateFormat.format(date, StringBuffer, FieldPosition) doesn't work as expected with custom extensions
naoto
parents:
14028
diff
changeset
|
87 |
import java.util.Locale; |
916ec0a4d039
8000245: SimpleDateFormat.format(date, StringBuffer, FieldPosition) doesn't work as expected with custom extensions
naoto
parents:
14028
diff
changeset
|
88 |
|
916ec0a4d039
8000245: SimpleDateFormat.format(date, StringBuffer, FieldPosition) doesn't work as expected with custom extensions
naoto
parents:
14028
diff
changeset
|
89 |
public class tznp extends TimeZoneNameProvider { |
916ec0a4d039
8000245: SimpleDateFormat.format(date, StringBuffer, FieldPosition) doesn't work as expected with custom extensions
naoto
parents:
14028
diff
changeset
|
90 |
public String getDisplayName(String ID, boolean daylight, int style, Locale locale) { |
916ec0a4d039
8000245: SimpleDateFormat.format(date, StringBuffer, FieldPosition) doesn't work as expected with custom extensions
naoto
parents:
14028
diff
changeset
|
91 |
return "tznp"; |
916ec0a4d039
8000245: SimpleDateFormat.format(date, StringBuffer, FieldPosition) doesn't work as expected with custom extensions
naoto
parents:
14028
diff
changeset
|
92 |
} |
916ec0a4d039
8000245: SimpleDateFormat.format(date, StringBuffer, FieldPosition) doesn't work as expected with custom extensions
naoto
parents:
14028
diff
changeset
|
93 |
|
916ec0a4d039
8000245: SimpleDateFormat.format(date, StringBuffer, FieldPosition) doesn't work as expected with custom extensions
naoto
parents:
14028
diff
changeset
|
94 |
public Locale[] getAvailableLocales() { |
17440
fb37aa6b305e
8013086: NPE thrown by SimpleDateFormat with TimeZoneNameProvider supplied
naoto
parents:
17169
diff
changeset
|
95 |
Locale[] locales = {Locale.US}; |
fb37aa6b305e
8013086: NPE thrown by SimpleDateFormat with TimeZoneNameProvider supplied
naoto
parents:
17169
diff
changeset
|
96 |
return locales; |
fb37aa6b305e
8013086: NPE thrown by SimpleDateFormat with TimeZoneNameProvider supplied
naoto
parents:
17169
diff
changeset
|
97 |
} |
fb37aa6b305e
8013086: NPE thrown by SimpleDateFormat with TimeZoneNameProvider supplied
naoto
parents:
17169
diff
changeset
|
98 |
} |
fb37aa6b305e
8013086: NPE thrown by SimpleDateFormat with TimeZoneNameProvider supplied
naoto
parents:
17169
diff
changeset
|
99 |
EOF |
fb37aa6b305e
8013086: NPE thrown by SimpleDateFormat with TimeZoneNameProvider supplied
naoto
parents:
17169
diff
changeset
|
100 |
mk ${SPIDIR}${FS}src${FS}tznp8013086.java << EOF |
fb37aa6b305e
8013086: NPE thrown by SimpleDateFormat with TimeZoneNameProvider supplied
naoto
parents:
17169
diff
changeset
|
101 |
import java.util.spi.TimeZoneNameProvider; |
fb37aa6b305e
8013086: NPE thrown by SimpleDateFormat with TimeZoneNameProvider supplied
naoto
parents:
17169
diff
changeset
|
102 |
import java.util.Locale; |
fb37aa6b305e
8013086: NPE thrown by SimpleDateFormat with TimeZoneNameProvider supplied
naoto
parents:
17169
diff
changeset
|
103 |
import java.util.TimeZone; |
fb37aa6b305e
8013086: NPE thrown by SimpleDateFormat with TimeZoneNameProvider supplied
naoto
parents:
17169
diff
changeset
|
104 |
|
fb37aa6b305e
8013086: NPE thrown by SimpleDateFormat with TimeZoneNameProvider supplied
naoto
parents:
17169
diff
changeset
|
105 |
public class tznp8013086 extends TimeZoneNameProvider { |
fb37aa6b305e
8013086: NPE thrown by SimpleDateFormat with TimeZoneNameProvider supplied
naoto
parents:
17169
diff
changeset
|
106 |
public String getDisplayName(String ID, boolean daylight, int style, Locale locale) { |
fb37aa6b305e
8013086: NPE thrown by SimpleDateFormat with TimeZoneNameProvider supplied
naoto
parents:
17169
diff
changeset
|
107 |
if (!daylight && style==TimeZone.LONG) { |
fb37aa6b305e
8013086: NPE thrown by SimpleDateFormat with TimeZoneNameProvider supplied
naoto
parents:
17169
diff
changeset
|
108 |
return "tznp8013086"; |
fb37aa6b305e
8013086: NPE thrown by SimpleDateFormat with TimeZoneNameProvider supplied
naoto
parents:
17169
diff
changeset
|
109 |
} else { |
fb37aa6b305e
8013086: NPE thrown by SimpleDateFormat with TimeZoneNameProvider supplied
naoto
parents:
17169
diff
changeset
|
110 |
return null; |
fb37aa6b305e
8013086: NPE thrown by SimpleDateFormat with TimeZoneNameProvider supplied
naoto
parents:
17169
diff
changeset
|
111 |
} |
fb37aa6b305e
8013086: NPE thrown by SimpleDateFormat with TimeZoneNameProvider supplied
naoto
parents:
17169
diff
changeset
|
112 |
} |
fb37aa6b305e
8013086: NPE thrown by SimpleDateFormat with TimeZoneNameProvider supplied
naoto
parents:
17169
diff
changeset
|
113 |
|
fb37aa6b305e
8013086: NPE thrown by SimpleDateFormat with TimeZoneNameProvider supplied
naoto
parents:
17169
diff
changeset
|
114 |
public Locale[] getAvailableLocales() { |
fb37aa6b305e
8013086: NPE thrown by SimpleDateFormat with TimeZoneNameProvider supplied
naoto
parents:
17169
diff
changeset
|
115 |
Locale[] locales = {Locale.JAPAN}; |
14185
916ec0a4d039
8000245: SimpleDateFormat.format(date, StringBuffer, FieldPosition) doesn't work as expected with custom extensions
naoto
parents:
14028
diff
changeset
|
116 |
return locales; |
916ec0a4d039
8000245: SimpleDateFormat.format(date, StringBuffer, FieldPosition) doesn't work as expected with custom extensions
naoto
parents:
14028
diff
changeset
|
117 |
} |
916ec0a4d039
8000245: SimpleDateFormat.format(date, StringBuffer, FieldPosition) doesn't work as expected with custom extensions
naoto
parents:
14028
diff
changeset
|
118 |
} |
916ec0a4d039
8000245: SimpleDateFormat.format(date, StringBuffer, FieldPosition) doesn't work as expected with custom extensions
naoto
parents:
14028
diff
changeset
|
119 |
EOF |
916ec0a4d039
8000245: SimpleDateFormat.format(date, StringBuffer, FieldPosition) doesn't work as expected with custom extensions
naoto
parents:
14028
diff
changeset
|
120 |
mk ${SPIDIR}${FS}dest${FS}META-INF${FS}services${FS}java.util.spi.TimeZoneNameProvider << EOF |
916ec0a4d039
8000245: SimpleDateFormat.format(date, StringBuffer, FieldPosition) doesn't work as expected with custom extensions
naoto
parents:
14028
diff
changeset
|
121 |
tznp |
17440
fb37aa6b305e
8013086: NPE thrown by SimpleDateFormat with TimeZoneNameProvider supplied
naoto
parents:
17169
diff
changeset
|
122 |
tznp8013086 |
14185
916ec0a4d039
8000245: SimpleDateFormat.format(date, StringBuffer, FieldPosition) doesn't work as expected with custom extensions
naoto
parents:
14028
diff
changeset
|
123 |
EOF |
36511 | 124 |
|
40261
86a49ba76f52
8136930: Simplify use of module-system options by custom launchers
mchung
parents:
36928
diff
changeset
|
125 |
EXTRAOPTS="--add-exports java.base/sun.util.locale=ALL-UNNAMED \ |
86a49ba76f52
8136930: Simplify use of module-system options by custom launchers
mchung
parents:
36928
diff
changeset
|
126 |
--add-exports java.base/sun.util.locale.provider=ALL-UNNAMED" |
36511 | 127 |
|
15254
3997a6f357cb
8005978: shell tests need to use the $COMPILEJDK for javac, jar and other tools
alanb
parents:
14786
diff
changeset
|
128 |
${COMPILEJAVA}${FS}bin${FS}javac ${TESTJAVACOPTS} ${TESTTOOLVMOPTS} -d ${SPIDIR}${FS}dest \ |
17440
fb37aa6b305e
8013086: NPE thrown by SimpleDateFormat with TimeZoneNameProvider supplied
naoto
parents:
17169
diff
changeset
|
129 |
${SPIDIR}${FS}src${FS}tznp.java \ |
fb37aa6b305e
8013086: NPE thrown by SimpleDateFormat with TimeZoneNameProvider supplied
naoto
parents:
17169
diff
changeset
|
130 |
${SPIDIR}${FS}src${FS}tznp8013086.java |
15254
3997a6f357cb
8005978: shell tests need to use the $COMPILEJDK for javac, jar and other tools
alanb
parents:
14786
diff
changeset
|
131 |
${COMPILEJAVA}${FS}bin${FS}jar ${TESTTOOLVMOPTS} cvf ${SPIDIR}${FS}tznp.jar -C ${SPIDIR}${FS}dest . |
14185
916ec0a4d039
8000245: SimpleDateFormat.format(date, StringBuffer, FieldPosition) doesn't work as expected with custom extensions
naoto
parents:
14028
diff
changeset
|
132 |
|
14028
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
133 |
# get the platform default locales |
36511 | 134 |
PLATDEF=`${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} ${EXTRAOPTS} -classpath ${TESTCLASSES} LocaleProviders getPlatformLocale display` |
14024
694c379c2958
7196799: CLDR adapter can not be invoked when region code is specified in Locale
naoto
parents:
13583
diff
changeset
|
135 |
DEFLANG=`echo ${PLATDEF} | sed -e "s/,.*//"` |
694c379c2958
7196799: CLDR adapter can not be invoked when region code is specified in Locale
naoto
parents:
13583
diff
changeset
|
136 |
DEFCTRY=`echo ${PLATDEF} | sed -e "s/.*,//"` |
694c379c2958
7196799: CLDR adapter can not be invoked when region code is specified in Locale
naoto
parents:
13583
diff
changeset
|
137 |
echo "DEFLANG=${DEFLANG}" |
694c379c2958
7196799: CLDR adapter can not be invoked when region code is specified in Locale
naoto
parents:
13583
diff
changeset
|
138 |
echo "DEFCTRY=${DEFCTRY}" |
36511 | 139 |
PLATDEF=`${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} ${EXTRAOPTS} -classpath ${TESTCLASSES} LocaleProviders getPlatformLocale format` |
14028
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
140 |
DEFFMTLANG=`echo ${PLATDEF} | sed -e "s/,.*//"` |
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
141 |
DEFFMTCTRY=`echo ${PLATDEF} | sed -e "s/.*,//"` |
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
142 |
echo "DEFFMTLANG=${DEFFMTLANG}" |
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
143 |
echo "DEFFMTCTRY=${DEFFMTCTRY}" |
14024
694c379c2958
7196799: CLDR adapter can not be invoked when region code is specified in Locale
naoto
parents:
13583
diff
changeset
|
144 |
|
13583 | 145 |
runTest() |
146 |
{ |
|
36511 | 147 |
RUNCMD="${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} ${EXTRAOPTS} -classpath ${TESTCLASSES}${PS}${SPICLASSES} -Djava.locale.providers=$PREFLIST LocaleProviders $METHODNAME $PARAM1 $PARAM2 $PARAM3" |
13583 | 148 |
echo ${RUNCMD} |
149 |
${RUNCMD} |
|
150 |
result=$? |
|
151 |
if [ $result -eq 0 ] |
|
152 |
then |
|
153 |
echo "Execution successful" |
|
154 |
else |
|
155 |
echo "Execution of the test case failed." |
|
156 |
exit $result |
|
157 |
fi |
|
158 |
} |
|
159 |
||
160 |
# testing HOST is selected for the default locale, if specified on Windows or MacOSX |
|
14028
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
161 |
METHODNAME=adapterTest |
14024
694c379c2958
7196799: CLDR adapter can not be invoked when region code is specified in Locale
naoto
parents:
13583
diff
changeset
|
162 |
PREFLIST=HOST,JRE |
13583 | 163 |
case "$OS" in |
164 |
Windows_NT* ) |
|
165 |
WINVER=`uname -r` |
|
166 |
if [ "${WINVER}" = "5" ] |
|
167 |
then |
|
14028
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
168 |
PARAM1=JRE |
13583 | 169 |
else |
14028
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
170 |
PARAM1=HOST |
13583 | 171 |
fi |
172 |
;; |
|
36733 | 173 |
CYGWIN_NT-6* | CYGWIN_NT-10* | Darwin ) |
14028
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
174 |
PARAM1=HOST |
13583 | 175 |
;; |
176 |
* ) |
|
14028
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
177 |
PARAM1=JRE |
13583 | 178 |
;; |
179 |
esac |
|
14028
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
180 |
PARAM2=${DEFLANG} |
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
181 |
PARAM3=${DEFCTRY} |
13583 | 182 |
runTest |
183 |
||
184 |
# testing HOST is NOT selected for the non-default locale, if specified |
|
14028
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
185 |
METHODNAME=adapterTest |
14024
694c379c2958
7196799: CLDR adapter can not be invoked when region code is specified in Locale
naoto
parents:
13583
diff
changeset
|
186 |
PREFLIST=HOST,JRE |
14028
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
187 |
PARAM1=JRE |
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
188 |
# Try to find the locale JRE supports which is not the platform default (HOST supports that one) |
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
189 |
if [ "${DEFLANG}" != "en" ] && [ "${DEFFMTLANG}" != "en" ]; then |
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
190 |
PARAM2=en |
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
191 |
PARAM3=US |
33494
3429cce32839
8062006: Add a new locale data name "COMPAT" for java.locale.providers system property to reduce ambiguity
naoto
parents:
31263
diff
changeset
|
192 |
elif [ "${DEFLANG}" != "ja" ] && [ "${DEFFMTLANG}" != "ja" ]; then |
14028
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
193 |
PARAM2=ja |
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
194 |
PARAM3=JP |
14024
694c379c2958
7196799: CLDR adapter can not be invoked when region code is specified in Locale
naoto
parents:
13583
diff
changeset
|
195 |
else |
14028
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
196 |
PARAM2=zh |
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
197 |
PARAM3=CN |
14024
694c379c2958
7196799: CLDR adapter can not be invoked when region code is specified in Locale
naoto
parents:
13583
diff
changeset
|
198 |
fi |
28093
270b6925cbc8
8062588: Support java.util.spi.*, java.text.spi.*, java.awt.im.spi loaded from classpath
naoto
parents:
22989
diff
changeset
|
199 |
SPICLASSES= |
13583 | 200 |
runTest |
201 |
||
202 |
# testing SPI is NOT selected, as there is none. |
|
14028
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
203 |
METHODNAME=adapterTest |
14024
694c379c2958
7196799: CLDR adapter can not be invoked when region code is specified in Locale
naoto
parents:
13583
diff
changeset
|
204 |
PREFLIST=SPI,JRE |
14028
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
205 |
PARAM1=JRE |
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
206 |
PARAM2=en |
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
207 |
PARAM3=US |
28093
270b6925cbc8
8062588: Support java.util.spi.*, java.text.spi.*, java.awt.im.spi loaded from classpath
naoto
parents:
22989
diff
changeset
|
208 |
SPICLASSES= |
13583 | 209 |
runTest |
33494
3429cce32839
8062006: Add a new locale data name "COMPAT" for java.locale.providers system property to reduce ambiguity
naoto
parents:
31263
diff
changeset
|
210 |
PREFLIST=SPI,COMPAT |
3429cce32839
8062006: Add a new locale data name "COMPAT" for java.locale.providers system property to reduce ambiguity
naoto
parents:
31263
diff
changeset
|
211 |
runTest |
13583 | 212 |
|
213 |
# testing the order, variaton #1. This assumes en_GB DateFormat data are available both in JRE & CLDR |
|
14028
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
214 |
METHODNAME=adapterTest |
14024
694c379c2958
7196799: CLDR adapter can not be invoked when region code is specified in Locale
naoto
parents:
13583
diff
changeset
|
215 |
PREFLIST=CLDR,JRE |
14028
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
216 |
PARAM1=CLDR |
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
217 |
PARAM2=en |
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
218 |
PARAM3=GB |
28093
270b6925cbc8
8062588: Support java.util.spi.*, java.text.spi.*, java.awt.im.spi loaded from classpath
naoto
parents:
22989
diff
changeset
|
219 |
SPICLASSES= |
13583 | 220 |
runTest |
33494
3429cce32839
8062006: Add a new locale data name "COMPAT" for java.locale.providers system property to reduce ambiguity
naoto
parents:
31263
diff
changeset
|
221 |
PREFLIST=CLDR,COMPAT |
3429cce32839
8062006: Add a new locale data name "COMPAT" for java.locale.providers system property to reduce ambiguity
naoto
parents:
31263
diff
changeset
|
222 |
runTest |
13583 | 223 |
|
224 |
# testing the order, variaton #2. This assumes en_GB DateFormat data are available both in JRE & CLDR |
|
14028
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
225 |
METHODNAME=adapterTest |
13583 | 226 |
PREFLIST=JRE,CLDR |
14028
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
227 |
PARAM1=JRE |
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
228 |
PARAM2=en |
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
229 |
PARAM3=GB |
28093
270b6925cbc8
8062588: Support java.util.spi.*, java.text.spi.*, java.awt.im.spi loaded from classpath
naoto
parents:
22989
diff
changeset
|
230 |
SPICLASSES= |
13583 | 231 |
runTest |
33494
3429cce32839
8062006: Add a new locale data name "COMPAT" for java.locale.providers system property to reduce ambiguity
naoto
parents:
31263
diff
changeset
|
232 |
PREFLIST=COMPAT,CLDR |
3429cce32839
8062006: Add a new locale data name "COMPAT" for java.locale.providers system property to reduce ambiguity
naoto
parents:
31263
diff
changeset
|
233 |
runTest |
13583 | 234 |
|
235 |
# testing the order, variaton #3 for non-existent locale in JRE assuming "haw" is not in JRE. |
|
14028
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
236 |
METHODNAME=adapterTest |
13583 | 237 |
PREFLIST=JRE,CLDR |
14028
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
238 |
PARAM1=CLDR |
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
239 |
PARAM2=haw |
31263 | 240 |
PARAM3= |
28093
270b6925cbc8
8062588: Support java.util.spi.*, java.text.spi.*, java.awt.im.spi loaded from classpath
naoto
parents:
22989
diff
changeset
|
241 |
SPICLASSES= |
13583 | 242 |
runTest |
33494
3429cce32839
8062006: Add a new locale data name "COMPAT" for java.locale.providers system property to reduce ambiguity
naoto
parents:
31263
diff
changeset
|
243 |
PREFLIST=COMPAT,CLDR |
3429cce32839
8062006: Add a new locale data name "COMPAT" for java.locale.providers system property to reduce ambiguity
naoto
parents:
31263
diff
changeset
|
244 |
runTest |
13583 | 245 |
|
14024
694c379c2958
7196799: CLDR adapter can not be invoked when region code is specified in Locale
naoto
parents:
13583
diff
changeset
|
246 |
# testing the order, variaton #4 for the bug 7196799. CLDR's "zh" data should be used in "zh_CN" |
14028
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
247 |
METHODNAME=adapterTest |
14024
694c379c2958
7196799: CLDR adapter can not be invoked when region code is specified in Locale
naoto
parents:
13583
diff
changeset
|
248 |
PREFLIST=CLDR |
14028
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
249 |
PARAM1=CLDR |
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
250 |
PARAM2=zh |
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
251 |
PARAM3=CN |
28093
270b6925cbc8
8062588: Support java.util.spi.*, java.text.spi.*, java.awt.im.spi loaded from classpath
naoto
parents:
22989
diff
changeset
|
252 |
SPICLASSES= |
14024
694c379c2958
7196799: CLDR adapter can not be invoked when region code is specified in Locale
naoto
parents:
13583
diff
changeset
|
253 |
runTest |
694c379c2958
7196799: CLDR adapter can not be invoked when region code is specified in Locale
naoto
parents:
13583
diff
changeset
|
254 |
|
694c379c2958
7196799: CLDR adapter can not be invoked when region code is specified in Locale
naoto
parents:
13583
diff
changeset
|
255 |
# testing FALLBACK provider. SPI and invalid one cases. |
14028
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
256 |
METHODNAME=adapterTest |
14024
694c379c2958
7196799: CLDR adapter can not be invoked when region code is specified in Locale
naoto
parents:
13583
diff
changeset
|
257 |
PREFLIST=SPI |
14028
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
258 |
PARAM1=FALLBACK |
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
259 |
PARAM2=en |
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
260 |
PARAM3=US |
28093
270b6925cbc8
8062588: Support java.util.spi.*, java.text.spi.*, java.awt.im.spi loaded from classpath
naoto
parents:
22989
diff
changeset
|
261 |
SPICLASSES= |
14024
694c379c2958
7196799: CLDR adapter can not be invoked when region code is specified in Locale
naoto
parents:
13583
diff
changeset
|
262 |
runTest |
694c379c2958
7196799: CLDR adapter can not be invoked when region code is specified in Locale
naoto
parents:
13583
diff
changeset
|
263 |
PREFLIST=FOO |
31263 | 264 |
PARAM1=CLDR |
14028
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
265 |
PARAM2=en |
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
266 |
PARAM3=US |
28093
270b6925cbc8
8062588: Support java.util.spi.*, java.text.spi.*, java.awt.im.spi loaded from classpath
naoto
parents:
22989
diff
changeset
|
267 |
SPICLASSES= |
14024
694c379c2958
7196799: CLDR adapter can not be invoked when region code is specified in Locale
naoto
parents:
13583
diff
changeset
|
268 |
runTest |
694c379c2958
7196799: CLDR adapter can not be invoked when region code is specified in Locale
naoto
parents:
13583
diff
changeset
|
269 |
PREFLIST=BAR,SPI |
14028
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
270 |
PARAM1=FALLBACK |
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
271 |
PARAM2=en |
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
272 |
PARAM3=US |
28093
270b6925cbc8
8062588: Support java.util.spi.*, java.text.spi.*, java.awt.im.spi loaded from classpath
naoto
parents:
22989
diff
changeset
|
273 |
SPICLASSES= |
14028
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
274 |
runTest |
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
275 |
|
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
276 |
# testing 7198834 fix. Only works on Windows Vista or upper. |
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
277 |
METHODNAME=bug7198834Test |
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
278 |
PREFLIST=HOST |
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
279 |
PARAM1= |
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
280 |
PARAM2= |
5f3d5ae5f1ea
7198834: HOST Adapter: one extra empty space in the end of the pattern string
naoto
parents:
14024
diff
changeset
|
281 |
PARAM3= |
28093
270b6925cbc8
8062588: Support java.util.spi.*, java.text.spi.*, java.awt.im.spi loaded from classpath
naoto
parents:
22989
diff
changeset
|
282 |
SPICLASSES= |
14024
694c379c2958
7196799: CLDR adapter can not be invoked when region code is specified in Locale
naoto
parents:
13583
diff
changeset
|
283 |
runTest |
694c379c2958
7196799: CLDR adapter can not be invoked when region code is specified in Locale
naoto
parents:
13583
diff
changeset
|
284 |
|
14185
916ec0a4d039
8000245: SimpleDateFormat.format(date, StringBuffer, FieldPosition) doesn't work as expected with custom extensions
naoto
parents:
14028
diff
changeset
|
285 |
# testing 8000245 fix. |
916ec0a4d039
8000245: SimpleDateFormat.format(date, StringBuffer, FieldPosition) doesn't work as expected with custom extensions
naoto
parents:
14028
diff
changeset
|
286 |
METHODNAME=tzNameTest |
28093
270b6925cbc8
8062588: Support java.util.spi.*, java.text.spi.*, java.awt.im.spi loaded from classpath
naoto
parents:
22989
diff
changeset
|
287 |
PREFLIST=JRE |
14185
916ec0a4d039
8000245: SimpleDateFormat.format(date, StringBuffer, FieldPosition) doesn't work as expected with custom extensions
naoto
parents:
14028
diff
changeset
|
288 |
PARAM1=Europe/Moscow |
916ec0a4d039
8000245: SimpleDateFormat.format(date, StringBuffer, FieldPosition) doesn't work as expected with custom extensions
naoto
parents:
14028
diff
changeset
|
289 |
PARAM2= |
916ec0a4d039
8000245: SimpleDateFormat.format(date, StringBuffer, FieldPosition) doesn't work as expected with custom extensions
naoto
parents:
14028
diff
changeset
|
290 |
PARAM3= |
28093
270b6925cbc8
8062588: Support java.util.spi.*, java.text.spi.*, java.awt.im.spi loaded from classpath
naoto
parents:
22989
diff
changeset
|
291 |
SPICLASSES=${SPIDIR} |
14185
916ec0a4d039
8000245: SimpleDateFormat.format(date, StringBuffer, FieldPosition) doesn't work as expected with custom extensions
naoto
parents:
14028
diff
changeset
|
292 |
runTest |
33494
3429cce32839
8062006: Add a new locale data name "COMPAT" for java.locale.providers system property to reduce ambiguity
naoto
parents:
31263
diff
changeset
|
293 |
PREFLIST=COMPAT |
3429cce32839
8062006: Add a new locale data name "COMPAT" for java.locale.providers system property to reduce ambiguity
naoto
parents:
31263
diff
changeset
|
294 |
runTest |
14185
916ec0a4d039
8000245: SimpleDateFormat.format(date, StringBuffer, FieldPosition) doesn't work as expected with custom extensions
naoto
parents:
14028
diff
changeset
|
295 |
|
916ec0a4d039
8000245: SimpleDateFormat.format(date, StringBuffer, FieldPosition) doesn't work as expected with custom extensions
naoto
parents:
14028
diff
changeset
|
296 |
# testing 8000615 fix. |
916ec0a4d039
8000245: SimpleDateFormat.format(date, StringBuffer, FieldPosition) doesn't work as expected with custom extensions
naoto
parents:
14028
diff
changeset
|
297 |
METHODNAME=tzNameTest |
28093
270b6925cbc8
8062588: Support java.util.spi.*, java.text.spi.*, java.awt.im.spi loaded from classpath
naoto
parents:
22989
diff
changeset
|
298 |
PREFLIST=JRE |
14185
916ec0a4d039
8000245: SimpleDateFormat.format(date, StringBuffer, FieldPosition) doesn't work as expected with custom extensions
naoto
parents:
14028
diff
changeset
|
299 |
PARAM1=America/Los_Angeles |
916ec0a4d039
8000245: SimpleDateFormat.format(date, StringBuffer, FieldPosition) doesn't work as expected with custom extensions
naoto
parents:
14028
diff
changeset
|
300 |
PARAM2= |
916ec0a4d039
8000245: SimpleDateFormat.format(date, StringBuffer, FieldPosition) doesn't work as expected with custom extensions
naoto
parents:
14028
diff
changeset
|
301 |
PARAM3= |
28093
270b6925cbc8
8062588: Support java.util.spi.*, java.text.spi.*, java.awt.im.spi loaded from classpath
naoto
parents:
22989
diff
changeset
|
302 |
SPICLASSES=${SPIDIR} |
14185
916ec0a4d039
8000245: SimpleDateFormat.format(date, StringBuffer, FieldPosition) doesn't work as expected with custom extensions
naoto
parents:
14028
diff
changeset
|
303 |
runTest |
33494
3429cce32839
8062006: Add a new locale data name "COMPAT" for java.locale.providers system property to reduce ambiguity
naoto
parents:
31263
diff
changeset
|
304 |
PREFLIST=COMPAT |
3429cce32839
8062006: Add a new locale data name "COMPAT" for java.locale.providers system property to reduce ambiguity
naoto
parents:
31263
diff
changeset
|
305 |
runTest |
14185
916ec0a4d039
8000245: SimpleDateFormat.format(date, StringBuffer, FieldPosition) doesn't work as expected with custom extensions
naoto
parents:
14028
diff
changeset
|
306 |
|
14336
4a3418a2c07f
8001440: CLDR adapter: Invalid number extension in language tag causes exception in NumberFormat.format()
naoto
parents:
14185
diff
changeset
|
307 |
# testing 8001440 fix. |
4a3418a2c07f
8001440: CLDR adapter: Invalid number extension in language tag causes exception in NumberFormat.format()
naoto
parents:
14185
diff
changeset
|
308 |
METHODNAME=bug8001440Test |
4a3418a2c07f
8001440: CLDR adapter: Invalid number extension in language tag causes exception in NumberFormat.format()
naoto
parents:
14185
diff
changeset
|
309 |
PREFLIST=CLDR |
4a3418a2c07f
8001440: CLDR adapter: Invalid number extension in language tag causes exception in NumberFormat.format()
naoto
parents:
14185
diff
changeset
|
310 |
PARAM1= |
4a3418a2c07f
8001440: CLDR adapter: Invalid number extension in language tag causes exception in NumberFormat.format()
naoto
parents:
14185
diff
changeset
|
311 |
PARAM2= |
4a3418a2c07f
8001440: CLDR adapter: Invalid number extension in language tag causes exception in NumberFormat.format()
naoto
parents:
14185
diff
changeset
|
312 |
PARAM3= |
28093
270b6925cbc8
8062588: Support java.util.spi.*, java.text.spi.*, java.awt.im.spi loaded from classpath
naoto
parents:
22989
diff
changeset
|
313 |
SPICLASSES= |
14336
4a3418a2c07f
8001440: CLDR adapter: Invalid number extension in language tag causes exception in NumberFormat.format()
naoto
parents:
14185
diff
changeset
|
314 |
runTest |
4a3418a2c07f
8001440: CLDR adapter: Invalid number extension in language tag causes exception in NumberFormat.format()
naoto
parents:
14185
diff
changeset
|
315 |
|
17169
5e5039c3181d
8010666: Implement Currency/LocaleNameProvider in Windows Host LocaleProviderAdapter
naoto
parents:
15254
diff
changeset
|
316 |
# testing 8010666 fix. |
5e5039c3181d
8010666: Implement Currency/LocaleNameProvider in Windows Host LocaleProviderAdapter
naoto
parents:
15254
diff
changeset
|
317 |
if [ "${DEFLANG}" = "en" ] |
5e5039c3181d
8010666: Implement Currency/LocaleNameProvider in Windows Host LocaleProviderAdapter
naoto
parents:
15254
diff
changeset
|
318 |
then |
5e5039c3181d
8010666: Implement Currency/LocaleNameProvider in Windows Host LocaleProviderAdapter
naoto
parents:
15254
diff
changeset
|
319 |
METHODNAME=bug8010666Test |
5e5039c3181d
8010666: Implement Currency/LocaleNameProvider in Windows Host LocaleProviderAdapter
naoto
parents:
15254
diff
changeset
|
320 |
PREFLIST=HOST |
5e5039c3181d
8010666: Implement Currency/LocaleNameProvider in Windows Host LocaleProviderAdapter
naoto
parents:
15254
diff
changeset
|
321 |
PARAM1= |
5e5039c3181d
8010666: Implement Currency/LocaleNameProvider in Windows Host LocaleProviderAdapter
naoto
parents:
15254
diff
changeset
|
322 |
PARAM2= |
5e5039c3181d
8010666: Implement Currency/LocaleNameProvider in Windows Host LocaleProviderAdapter
naoto
parents:
15254
diff
changeset
|
323 |
PARAM3= |
28093
270b6925cbc8
8062588: Support java.util.spi.*, java.text.spi.*, java.awt.im.spi loaded from classpath
naoto
parents:
22989
diff
changeset
|
324 |
SPICLASSES= |
17169
5e5039c3181d
8010666: Implement Currency/LocaleNameProvider in Windows Host LocaleProviderAdapter
naoto
parents:
15254
diff
changeset
|
325 |
runTest |
5e5039c3181d
8010666: Implement Currency/LocaleNameProvider in Windows Host LocaleProviderAdapter
naoto
parents:
15254
diff
changeset
|
326 |
fi |
5e5039c3181d
8010666: Implement Currency/LocaleNameProvider in Windows Host LocaleProviderAdapter
naoto
parents:
15254
diff
changeset
|
327 |
|
17440
fb37aa6b305e
8013086: NPE thrown by SimpleDateFormat with TimeZoneNameProvider supplied
naoto
parents:
17169
diff
changeset
|
328 |
# testing 8013086 fix. |
fb37aa6b305e
8013086: NPE thrown by SimpleDateFormat with TimeZoneNameProvider supplied
naoto
parents:
17169
diff
changeset
|
329 |
METHODNAME=bug8013086Test |
28093
270b6925cbc8
8062588: Support java.util.spi.*, java.text.spi.*, java.awt.im.spi loaded from classpath
naoto
parents:
22989
diff
changeset
|
330 |
PREFLIST=JRE,SPI |
17440
fb37aa6b305e
8013086: NPE thrown by SimpleDateFormat with TimeZoneNameProvider supplied
naoto
parents:
17169
diff
changeset
|
331 |
PARAM1=ja |
fb37aa6b305e
8013086: NPE thrown by SimpleDateFormat with TimeZoneNameProvider supplied
naoto
parents:
17169
diff
changeset
|
332 |
PARAM2=JP |
fb37aa6b305e
8013086: NPE thrown by SimpleDateFormat with TimeZoneNameProvider supplied
naoto
parents:
17169
diff
changeset
|
333 |
PARAM3= |
28093
270b6925cbc8
8062588: Support java.util.spi.*, java.text.spi.*, java.awt.im.spi loaded from classpath
naoto
parents:
22989
diff
changeset
|
334 |
SPICLASSES=${SPIDIR} |
17440
fb37aa6b305e
8013086: NPE thrown by SimpleDateFormat with TimeZoneNameProvider supplied
naoto
parents:
17169
diff
changeset
|
335 |
runTest |
33494
3429cce32839
8062006: Add a new locale data name "COMPAT" for java.locale.providers system property to reduce ambiguity
naoto
parents:
31263
diff
changeset
|
336 |
PREFLIST=COMPAT,SPI |
3429cce32839
8062006: Add a new locale data name "COMPAT" for java.locale.providers system property to reduce ambiguity
naoto
parents:
31263
diff
changeset
|
337 |
runTest |
17440
fb37aa6b305e
8013086: NPE thrown by SimpleDateFormat with TimeZoneNameProvider supplied
naoto
parents:
17169
diff
changeset
|
338 |
|
17944
bbd67fc49daa
8013903: Japanese calendar field names are not displayed with -Djava.locale.providers=HOST on Windows
naoto
parents:
17933
diff
changeset
|
339 |
# testing 8013903 fix. (Windows only) |
bbd67fc49daa
8013903: Japanese calendar field names are not displayed with -Djava.locale.providers=HOST on Windows
naoto
parents:
17933
diff
changeset
|
340 |
METHODNAME=bug8013903Test |
bbd67fc49daa
8013903: Japanese calendar field names are not displayed with -Djava.locale.providers=HOST on Windows
naoto
parents:
17933
diff
changeset
|
341 |
PREFLIST=HOST,JRE |
bbd67fc49daa
8013903: Japanese calendar field names are not displayed with -Djava.locale.providers=HOST on Windows
naoto
parents:
17933
diff
changeset
|
342 |
PARAM1= |
bbd67fc49daa
8013903: Japanese calendar field names are not displayed with -Djava.locale.providers=HOST on Windows
naoto
parents:
17933
diff
changeset
|
343 |
PARAM2= |
bbd67fc49daa
8013903: Japanese calendar field names are not displayed with -Djava.locale.providers=HOST on Windows
naoto
parents:
17933
diff
changeset
|
344 |
PARAM3= |
28093
270b6925cbc8
8062588: Support java.util.spi.*, java.text.spi.*, java.awt.im.spi loaded from classpath
naoto
parents:
22989
diff
changeset
|
345 |
SPICLASSES= |
17944
bbd67fc49daa
8013903: Japanese calendar field names are not displayed with -Djava.locale.providers=HOST on Windows
naoto
parents:
17933
diff
changeset
|
346 |
runTest |
bbd67fc49daa
8013903: Japanese calendar field names are not displayed with -Djava.locale.providers=HOST on Windows
naoto
parents:
17933
diff
changeset
|
347 |
PREFLIST=HOST |
33494
3429cce32839
8062006: Add a new locale data name "COMPAT" for java.locale.providers system property to reduce ambiguity
naoto
parents:
31263
diff
changeset
|
348 |
runTest |
3429cce32839
8062006: Add a new locale data name "COMPAT" for java.locale.providers system property to reduce ambiguity
naoto
parents:
31263
diff
changeset
|
349 |
PREFLIST=HOST,COMPAT |
17944
bbd67fc49daa
8013903: Japanese calendar field names are not displayed with -Djava.locale.providers=HOST on Windows
naoto
parents:
17933
diff
changeset
|
350 |
runTest |
bbd67fc49daa
8013903: Japanese calendar field names are not displayed with -Djava.locale.providers=HOST on Windows
naoto
parents:
17933
diff
changeset
|
351 |
|
22989
2d6804cfdc0e
8027289: [Windows zh_CN] NumberFormat: Incorrect sequence of loading currency symbol
naoto
parents:
22602
diff
changeset
|
352 |
# testing 8027289 fix, if the platform format default is zh_CN |
2d6804cfdc0e
8027289: [Windows zh_CN] NumberFormat: Incorrect sequence of loading currency symbol
naoto
parents:
22602
diff
changeset
|
353 |
# this assumes Windows' currency symbol for zh_CN is \u00A5, the yen |
2d6804cfdc0e
8027289: [Windows zh_CN] NumberFormat: Incorrect sequence of loading currency symbol
naoto
parents:
22602
diff
changeset
|
354 |
# (yuan) sign. |
2d6804cfdc0e
8027289: [Windows zh_CN] NumberFormat: Incorrect sequence of loading currency symbol
naoto
parents:
22602
diff
changeset
|
355 |
if [ "${DEFFMTLANG}" = "zh" ] && [ "${DEFFMTCTRY}" = "CN" ]; then |
2d6804cfdc0e
8027289: [Windows zh_CN] NumberFormat: Incorrect sequence of loading currency symbol
naoto
parents:
22602
diff
changeset
|
356 |
METHODNAME=bug8027289Test |
2d6804cfdc0e
8027289: [Windows zh_CN] NumberFormat: Incorrect sequence of loading currency symbol
naoto
parents:
22602
diff
changeset
|
357 |
PREFLIST=JRE,HOST |
2d6804cfdc0e
8027289: [Windows zh_CN] NumberFormat: Incorrect sequence of loading currency symbol
naoto
parents:
22602
diff
changeset
|
358 |
PARAM1=FFE5 |
2d6804cfdc0e
8027289: [Windows zh_CN] NumberFormat: Incorrect sequence of loading currency symbol
naoto
parents:
22602
diff
changeset
|
359 |
PARAM2= |
2d6804cfdc0e
8027289: [Windows zh_CN] NumberFormat: Incorrect sequence of loading currency symbol
naoto
parents:
22602
diff
changeset
|
360 |
PARAM3= |
28093
270b6925cbc8
8062588: Support java.util.spi.*, java.text.spi.*, java.awt.im.spi loaded from classpath
naoto
parents:
22989
diff
changeset
|
361 |
SPICLASSES= |
22989
2d6804cfdc0e
8027289: [Windows zh_CN] NumberFormat: Incorrect sequence of loading currency symbol
naoto
parents:
22602
diff
changeset
|
362 |
runTest |
33494
3429cce32839
8062006: Add a new locale data name "COMPAT" for java.locale.providers system property to reduce ambiguity
naoto
parents:
31263
diff
changeset
|
363 |
PREFLIST=COMPAT,HOST |
3429cce32839
8062006: Add a new locale data name "COMPAT" for java.locale.providers system property to reduce ambiguity
naoto
parents:
31263
diff
changeset
|
364 |
runTest |
22989
2d6804cfdc0e
8027289: [Windows zh_CN] NumberFormat: Incorrect sequence of loading currency symbol
naoto
parents:
22602
diff
changeset
|
365 |
PREFLIST=HOST |
2d6804cfdc0e
8027289: [Windows zh_CN] NumberFormat: Incorrect sequence of loading currency symbol
naoto
parents:
22602
diff
changeset
|
366 |
PARAM1=00A5 |
2d6804cfdc0e
8027289: [Windows zh_CN] NumberFormat: Incorrect sequence of loading currency symbol
naoto
parents:
22602
diff
changeset
|
367 |
runTest |
2d6804cfdc0e
8027289: [Windows zh_CN] NumberFormat: Incorrect sequence of loading currency symbol
naoto
parents:
22602
diff
changeset
|
368 |
fi |
2d6804cfdc0e
8027289: [Windows zh_CN] NumberFormat: Incorrect sequence of loading currency symbol
naoto
parents:
22602
diff
changeset
|
369 |
|
13583 | 370 |
exit $result |