[fs] Regex has redundant | in the char class

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 9
    • Affects Version/s: 8, 9
    • Component/s: core-libs
    • b78

        In jdk/src/java.base/unix/classes/sun/nio/fs/MimeTypesFileTypeDetector.java there are two regexps:

        String extRegex = "\\b" + EXTEQUAL +
            "(\"[\\p{Graph}|\\p{Blank}]+?\"|\\p{Graph}+\\b)";

        String[] extList = exts.split("[\\p{Blank}|\\p{Punct}]+");

        which have redundant bar-character in the char class.

              Assignee:
              Ivan Gerasimov
              Reporter:
              Ivan Gerasimov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: