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

The documentation of the String.regionMatches method contains error

XMLWordPrintable

    • b29
    • generic
    • generic

        A DESCRIPTION OF THE PROBLEM :
        The documentation of the String.regionMatches method contains this fragment: this.substring(toffset, len).codePoints(), but String.substring method takes index, not the length, as the second argument.

        See: https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/String.html#regionMatches(boolean,int,java.lang.String,int,int)


              jlaskey Jim Laskey
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: