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

Regression in StringBuilder.charAt bounds checking

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b11

      Description

      Its observed that with early access nightly builds of jdk-18-ea9 the conformance tests validating the charAt method of StringBuffer/StringBuilder are failing for the case -
      Throws:
      IndexOutOfBoundsException - if index is negative or greater than or equal to length().

      Please find the attached standalone code snippet to reproduce the issue.

      This looks a regression caused by the fix - https://bugs.openjdk.java.net/browse/JDK-8270160

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              redestad Claes Redestad
              Reporter:
              kganapureddy Krushnareddy Ganapureddy
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: