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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: 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

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

              Created:
              Updated:
              Resolved: