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

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

    XMLWordPrintable

Details

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

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: