Blog

Java 17 でインドネシア語の Locale の扱いが変わっている

Java 11

|  Welcome to JShell -- Version 11.0.16
|  For an introduction type: /help intro
 
jshell> new Locale("id")
$1 ==> in
 
jshell> new Locale("in")
$2 ==> in

Java 17

|  Welcome to JShell -- Version 17.0.4
|  For an introduction type: /help intro
 
jshell> new Locale("id")
$1 ==> id
 
jshell> new Locale("in")
$2 ==> id