jtreg tag specification for @requires needs enhancing

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: tools
    • None

      In the "Declarative Tags" section, under the @requires section, it says:

      Operators: ( ) * / % + - == ~= < <= > >= & | !
       
      It would really help to understand how these operators are defined/used, especially the "~=". We originally thought this was a "partial match" operator for Strings, but turns out it's a "full match." Is "==" for Strings, or just numerics?

      e.g. to exclude OpenJDK:

       * @requires !(java.runtime.name ~= "OpenJDK") #wrong
       * @requires !(java.runtime.name ~= "OpenJDK.*") #correct

      Also, is this using the Pattern API?

            Assignee:
            Unassigned
            Reporter:
            Bradford Wetmore
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: