Details
-
Bug
-
Resolution: Fixed
-
P3
-
8u211
-
b01
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8246967 | emb-8u261 | Sean Coffey | P3 | Resolved | Fixed | team |
Description
Japanese locale data in the COMPAT provider of JDK 11 is not same as that of JDK 8.
The Java doc mentions the COMPAT provider is prepared to keep compatibility of
locale data with ealier releases. The data in JDK 11 should be consistent with JDK 8.
$ ${JDK11}/java -Djava.locale.providers=COMPAT Sample2
java version "11.0.3" 2019-04-16 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.3+12-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.3+12-LTS, mixed mode)
ERA - SHORT_FORMAT:{BM=0, H=4, M=1, R=5, S=3, T=2}
ERA - SHORT_STANDALONE:{BM=0, H=4, M=1, R=5, S=3, T=2}
ERA - NARROW_FORMAT:{BM=0, H=4, M=1, R=5, S=3, T=2}
ERA - NARROW_STANDALONE:{BM=0, H=4, M=1, R=5, S=3, T=2}
MONTH - SHORT_STANDALONE:{10=9, 11=10, 12=11, 1=0, 2=1, 3=2, 4=3, 5=4, 6=5,
7=6, 8=7, 9=8}
MONTH - LONG_STANDALONE:{10月=9, 11月=10, 12月=11, 1月=0, 2月=1, 3月=2, 4月=3, 5月=4, 6月=5, 7月=6, 8月=7, 9月=8}
MONTH - NARROW_STANDALONE:{10=9, 11=10, 12=11, 1=0, 2=1, 3=2, 4=3, 5=4, 6=5, 7=6, 8=7, 9=8}
DAY_OF_WEEK - NARROW_STANDALONE:{土=7, 日=1, 月=2, 木=5, 水=4, 火=3, 金=6}
$ ${JDK8}/java -showversion Sample2
java version "1.8.0_211"
Java(TM) SE Runtime Environment (build 1.8.0_211-b08)
Java HotSpot(TM) 64-Bit Server VM (build 25.211-b08, mixed mode)
ERA - SHORT_FORMAT:{H=4, M=1, R=5, S=3, T=2}
ERA - SHORT_STANDALONE:{H=4, M=1, R=5, S=3, T=2}
ERA - NARROW_FORMAT:{H=4, M=1, R=5, S=3, T=2}
ERA - NARROW_STANDALONE:{H=4, M=1, R=5, S=3, T=2}
MONTH - SHORT_STANDALONE:null
MONTH - LONG_STANDALONE:null
MONTH - NARROW_STANDALONE:null
DAY_OF_WEEK - NARROW_STANDALONE:null
The Java doc mentions the COMPAT provider is prepared to keep compatibility of
locale data with ealier releases. The data in JDK 11 should be consistent with JDK 8.
$ ${JDK11}/java -Djava.locale.providers=COMPAT Sample2
java version "11.0.3" 2019-04-16 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.3+12-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.3+12-LTS, mixed mode)
ERA - SHORT_FORMAT:{BM=0, H=4, M=1, R=5, S=3, T=2}
ERA - SHORT_STANDALONE:{BM=0, H=4, M=1, R=5, S=3, T=2}
ERA - NARROW_FORMAT:{BM=0, H=4, M=1, R=5, S=3, T=2}
ERA - NARROW_STANDALONE:{BM=0, H=4, M=1, R=5, S=3, T=2}
MONTH - SHORT_STANDALONE:{10=9, 11=10, 12=11, 1=0, 2=1, 3=2, 4=3, 5=4, 6=5,
7=6, 8=7, 9=8}
MONTH - LONG_STANDALONE:{10月=9, 11月=10, 12月=11, 1月=0, 2月=1, 3月=2, 4月=3, 5月=4, 6月=5, 7月=6, 8月=7, 9月=8}
MONTH - NARROW_STANDALONE:{10=9, 11=10, 12=11, 1=0, 2=1, 3=2, 4=3, 5=4, 6=5, 7=6, 8=7, 9=8}
DAY_OF_WEEK - NARROW_STANDALONE:{土=7, 日=1, 月=2, 木=5, 水=4, 火=3, 金=6}
$ ${JDK8}/java -showversion Sample2
java version "1.8.0_211"
Java(TM) SE Runtime Environment (build 1.8.0_211-b08)
Java HotSpot(TM) 64-Bit Server VM (build 25.211-b08, mixed mode)
ERA - SHORT_FORMAT:{H=4, M=1, R=5, S=3, T=2}
ERA - SHORT_STANDALONE:{H=4, M=1, R=5, S=3, T=2}
ERA - NARROW_FORMAT:{H=4, M=1, R=5, S=3, T=2}
ERA - NARROW_STANDALONE:{H=4, M=1, R=5, S=3, T=2}
MONTH - SHORT_STANDALONE:null
MONTH - LONG_STANDALONE:null
MONTH - NARROW_STANDALONE:null
DAY_OF_WEEK - NARROW_STANDALONE:null
Attachments
Issue Links
- backported by
-
JDK-8246967 Have calendar revert to default names if no standalone resources exist
- Resolved