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

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

    XMLWordPrintable

Details

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

    Description

      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>

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: