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

CLDR and JRE LocaleProviderAdapters silently swallow exceptions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 10
    • Fix Version/s: 10
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b29
    • Verification:
      Verified

      Description

      As part of fixing ServiceLoader issue JDK-8189264, I ran into a number of test failures that turned out to be caused by the LocaleProviderAdapters implementations swallowing exceptions, i.e:

      try {

         ...

      } catch (Exception e) {
          // Catch any exception, and continue as if only CLDR's base locales exist.
      }

      This code should be re-examined to see if it can be improved, maybe the VM should terminate if the built-in locale providers are broken or insufficient permissions have been granted?

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              naoto Naoto Sato
              Reporter:
              alanb Alan Bateman
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: