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

Reconsider re-opening JDK-8190696

XMLWordPrintable

      ADDITIONAL SYSTEM INFORMATION :
      Windows 11

      A DESCRIPTION OF THE PROBLEM :
      Reconsider re-opening JDK-8190696
      "ResourceBundleControlProvider no more usable"

      The fact that it can't be used in module environment makes it hard or very hard to block the default fallback mechanism. Such a functionality was offered by: ResourceBundle.Control getNoFallbackControl(...) which allowed one to easily inspect if translation is missing for a specific language and override the default fallback mechanism to tell that fallback should be different DURING THE CALL TO THE STANDARD getBundle().

      I will not insist on returning to the same API, but some API which could control it would be great.

      ACTUAL -
      Be able to block fallback mechanism in an easy way.

      CUSTOMER SUBMITTED WORKAROUND :
      instead of:

      ResourceBundle.getBundle("x")

      use

      ResourceBundle.getBundle("x_pl") for "pl" locale.


      FREQUENCY : always


            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: