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

Escape + in the expression describing Runtime.Version string

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 14
    • None
    • core-libs
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: