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

Typo in java.util.regex.Pattern javadoc: no slash in \p class

    XMLWordPrintable

    Details

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

      Description

      diff --git a/src/java.base/share/classes/java/util/regex/Pattern.java b/src/java.base/share/classes/java/util/regex/Pattern.java
      --- a/src/java.base/share/classes/java/util/regex/Pattern.java
      +++ b/src/java.base/share/classes/java/util/regex/Pattern.java
      @@ -667,11 +667,11 @@
        * <tr><td>{@code \p{Alpha}}</td>
        * <td>An alphabetic character:{@code \p{IsAlphabetic}}</td></tr>
        * <tr><td>{@code \p{Digit}}</td>
      - * <td>A decimal digit character:{@code p{IsDigit}}</td></tr>
      + * <td>A decimal digit character:{@code \p{IsDigit}}</td></tr>
        * <tr><td>{@code \p{Alnum}}</td>
        * <td>An alphanumeric character:{@code [\p{IsAlphabetic}\p{IsDigit}]}</td></tr>
        * <tr><td>{@code \p{Punct}}</td>
      - * <td>A punctuation character:{@code p{IsPunctuation}}</td></tr>
      + * <td>A punctuation character:{@code \p{IsPunctuation}}</td></tr>
        * <tr><td>{@code \p{Graph}}</td>
        * <td>A visible character: {@code [^\p{IsWhite_Space}\p{gc=Cc}\p{gc=Cs}\p{gc=Cn}]}</td></tr>
        * <tr><td>{@code \p{Print}}</td>

        Attachments

          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: