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

MethodMatcher destroys value if value contains colons or dots

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 22
    • hotspot

      When parsing CompileCommand, `MethodMatcher::parse_method_pattern()` gets handed the full trailing line after the command name, consisting of method name, optionally with signature, and an optional trailing option separated by comma from the name.

      One of its first actions is to canonicalize the string (e.g. replacing colons with blanks).

      It does this over the full line. Therefore it destroys the option string if the option happens to contain colons. It also replaces dots with '/'.

      There is special handling for floating point values to deal with the overwritten dots. Other than that, using these characters in option values won't work. It would be nice to modify the matcher to not touch the option string, instead.

            Unassigned Unassigned
            stuefe Thomas Stuefe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: