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

Escape + in the expression describing Runtime.Version string

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 14
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b23

      Description

      Format of the Runtime.Version string is described as a list of regular expressions [1].

           $VNUM(-$PRE)?\+$BUILD(-$OPT)?
           $VNUM-$PRE(-$OPT)?
           $VNUM(+-$OPT)?

      The character + in the last line should be escaped to be consistent with the first line and to avoid confusion with RE quantifiers.

      [1] https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/Runtime.Version.html

        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: