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

jshell tool: --startup PRINTING references undeclared Locale class

XMLWordPrintable

    • b157
    • Verified

        The built-in PRINTING startup file defines:

            void printf(Locale l, String format, Object... args) { System.out.printf(l, format, args); }

        but, unless there are imports for Locale, it is undefined. Should be:

            void printf(java.util.Locale l, String format, Object... args) { System.out.printf(l, format, args); }

              rfield Robert Field (Inactive)
              rfield Robert Field (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: