Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8330276

Console methods with explicit Locale

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 23
    • None
    • core-libs
    • b24
    • generic
    • generic

      Currently, there is no `java.io.Console` methods that explicitly take a Locale as an argument for formatting strings. Adding those overloaded methods would be beneficial, i.e,
      ```
      public Console printf(Locale locale, String format, Object... args)
      ```
      and similar ones for `format()`, `readLine()`, and `readPassword()`.

      The motivation here is that there is no alternative for users to do this kind of explicit locale formatting with Console. Other format classes such as String.format(), and its impl Formatter offer such overloads.

        There are no Sub-Tasks for this issue.

            naoto Naoto Sato
            naoto Naoto Sato
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: