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

unexpected key compiler.err.java.io.UnsupportedEncodingException - bad encoding

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.4.0
    • tools
    • beta3
    • generic
    • generic
    • Verified

       $ java -version
      java version "1.4.0-beta_refresh"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta_refresh-b72)
      Java HotSpot(TM) Client VM (build 1.4.0-beta_refresh-b72, mixed mode)
      $ javac -encoding foo Test.java
      error: compiler message file broken: key=compiler.err.java.io.UnsupportedEncodingException: foo arguments=null, null, null, null, null, null, null
      1 error

      It looks like getLocalizedString(String key) is being called with the name of
      the thrown exception rather than a valid key (which doesn't appear to exist in
      the resource bundle).

      In jdk1.3, this was similarly broken. In jdk1.2, the compiler silently ignores
      the invalid encoding and produces a .class file, presumably using the machine's
      default encoding.

      - iag@eng 2001-07-23

            gafter Neal Gafter (Inactive)
            iris Iris Clark
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: