# HG changeset patch # User naoto # Date 1518818614 28800 # Node ID 67cdc215ed706cac8db039c0217e9868b32ff22b # Parent 54b423e1c4cf04feaa9d197cdb036a93776eb925 8198228: Spec clarification: j.u.Locale.getDisplayName() Reviewed-by: rriggs diff -r 54b423e1c4cf -r 67cdc215ed70 src/java.base/share/classes/java/util/Locale.java --- a/src/java.base/share/classes/java/util/Locale.java Fri Feb 16 11:49:27 2018 -0800 +++ b/src/java.base/share/classes/java/util/Locale.java Fri Feb 16 14:03:34 2018 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1996, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -1946,9 +1946,10 @@ * script (country(, extension)*)
* country (extension)*
* - * depending on which fields are specified in the locale. If the - * language, script, country, and variant fields are all empty, - * this function returns the empty string. + * depending on which fields are specified in the locale. The field + * separator in the above parentheses, denoted as a comma character, may + * be localized depending on the locale. If the language, script, country, + * and variant fields are all empty, this function returns the empty string. * * @return The name of the locale appropriate to display. */ @@ -1971,9 +1972,10 @@ * script (country(, extension)*)
* country (extension)*
* - * depending on which fields are specified in the locale. If the - * language, script, country, and variant fields are all empty, - * this function returns the empty string. + * depending on which fields are specified in the locale. The field + * separator in the above parentheses, denoted as a comma character, may + * be localized depending on the locale. If the language, script, country, + * and variant fields are all empty, this function returns the empty string. * * @param inLocale The locale for which to retrieve the display name. * @return The name of the locale appropriate to display.