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

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

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

              Dates

              Created:
              Updated:
              Resolved: