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

The Japanese message of FileNotFoundException garbled.

XMLWordPrintable

    • b20
    • 11
    • b11
    • x86_64
    • windows_10
    • Verified

        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


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

                Created:
                Updated:
                Resolved: