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

Matcher doesn't indicate hitEnd after matching \u0D with \R at EOL

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 10
    • Component/s: core-libs
    • Labels:
      None

      Description

      Reproducer:
      + p = Pattern.compile("...\\R");
      + m = p.matcher("cat" + (char)0x0d);
      + m.find();
      + if (!m.hitEnd())
      + failCount++;

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                igerasim Ivan Gerasimov
                Reporter:
                igerasim Ivan Gerasimov
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: