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

PrintWriter documentation error: write() methods don't throw IOException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 3.1.1, 1.3.0
    • docs
    • generic, sparc
    • generic, solaris_2.6



      Name: rlT66838 Date: 02/28/2000


      > java -version
      java version "1.3.0rc1"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0rc1-T)
      Java HotSpot(TM) Client VM (build 1.3.0rc1-S, interpreted mode)


      The PrintWriter class doc in the JDK doc download states that the three
      overloaded write() methods:
        write(int c)
        write(char[] buf,int start,int end)
        write(String str,int start,int end)

      all throw IOException - but of course they don't.
      (Review ID: 101790)
      ======================================================================

            shommel Scott Hommel (Inactive)
            rlewis Roger Lewis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: