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

ResourceBundle.getBundle() displays FileNotFound message

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.1.4
    • core-libs
    • x86
    • windows_nt



      Name: paC48320 Date: 10/10/97


      The following lines:

      public static final String RESOURCES = "COM.ibm.test.TestResources";
      ResourceBundle r = ResourceBundle.getBundle(RESOURCES, Locale.getDefault());

      generate the message:

      File not found when looking for: COM.ibm.test.TestResources_en_US

      If the en_US version of the resource file does not
      exit. If TestResources_en.class didn't exist,
      you'd also get a "file not found" for it, as well.
      However, as long as the base TestResource.class is
      found, the code continues to run.

      (In JDK 1.1.3, you also got a stack trace with the
      error message.)

      In my opinion, the "file not found" message should
      be suppressed as long as one resource file in the
      expected heirarchy is found. I absolutely don't
      want to provide a resource file for every possible
      variation of locale!
      ======================================================================

            bcbeck Brian Beck (Inactive)
            pallenba Peter Allenbach (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: