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

CLDR and JRE LocaleProviderAdapters silently swallow exceptions

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 10
    • 10
    • core-libs
    • None
    • b29
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: