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

(spec) Fix java.io.Writer.write(java.lang.String, int, int) IndexOutOfBoundsException wording

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • None
    • 9
    • core-libs
    • None

      Change:

           * @throws IndexOutOfBoundsException
           * If <tt>off</tt> is negative, or <tt>len</tt> is negative,
           * or <tt>off+len</tt> is negative or greater than the length
           * of the given string

      to a more standard, less awkward and fully equivalent:

           * @throws IndexOutOfBoundsException
           * If <tt>off</tt> is negative, or <tt>len</tt> is negative,
           * or <tt>len</tt> greater than <tt>str.length() - off</tt>

            prappo Pavel Rappo (Inactive)
            prappo Pavel Rappo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: