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

The Japanese message of FileNotFoundException garbled.

    XMLWordPrintable

    Details

    • Subcomponent:
    • Introduced In Build:
      b20
    • Introduced In Version:
      11
    • Resolved In Build:
      b11
    • CPU:
      x86_64
    • OS:
      windows_10
    • Verification:
      Verified

      Backports

        Description

        ADDITIONAL SYSTEM INFORMATION :
        Windows10 1703 (64bit)
        OpenJDK 11(Oracle JDK builds 28)

        A DESCRIPTION OF THE PROBLEM :
        If the file specified when reading the file does not exist, the Japanese message of FileNotFoundException that occurs is garbled.

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        When reading a file, specify a file that does not exist.

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        java.io.FileNotFoundException: test.txt (ファイル名、ディレクトリ名、またはボリューム ラベルの構文が間違っています。)
        ACTUAL -
         java.io.FileNotFoundException: test.txt (ƒtƒ@ƒCƒ‹–¼AƒfƒBƒŒƒNƒgƒ)

        ---------- BEGIN SOURCE ----------
        import java.io.FileNotFoundException;
        import java.io.FileReader;

        public class Sample {
        public static void main(String[] args) {
        try {
        FileReader fr = new FileReader("test.txt");
        } catch (FileNotFoundException e) {
        e.printStackTrace();
        }
        }
        }
        ---------- END SOURCE ----------

        FREQUENCY : always


          Attachments

            Issue Links

              Activity

                People

                Assignee:
                sherman Xueming Shen
                Reporter:
                webbuggrp Webbug Group
                Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: