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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 10
    • 9
    • core-libs
    • None

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

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

              Created:
              Updated:
              Resolved: