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

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

    XMLWordPrintable

Details

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

    Description

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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: