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

Broken example in https://docs.oracle.com/javase/tutorial/essential/environment/security.html

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • None
    • None
    • docs
    • None

      On the page:
      https://docs.oracle.com/javase/tutorial/essential/environment/security.html

      in the section:
      Recognizing a Security Violation

      the example uses a FileReader and file named xanadu.txt:
      new FileReader("xanadu.txt");

      but the stack trace mentions and FileWriter and a file named characteroutput.txt

            bhoran Bernard Horan (Inactive)
            stefank Stefan Karlsson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: