Update explicit uses of latest source/target in langtools tests to a property

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 13
    • Affects Version/s: 13
    • Component/s: tools
    • b10

      Dozens of langtools tests are written to have an explicit use of the latest -source or -target value, currently primarily in support of enable preview features where an explicit -source value needs to be passed in to turn on the language feature. (The langtools tests over the years have generally been written or updated to assume the latest source/target and not need an explicit option.)

      Needing to update dozens of these tests cause a maintenance hassle when a new release comes around (JDK-8205626), especially as a new release now comes around every six months and a language feature is likely to stay in preview for more than one release cycle (JDK-8214825).

      To improve this situation, the tests in question could be refactored to take advantage of the new jtreg capability to pass in named properties in the test definition tags (CODETOOLS-7902352).

            Assignee:
            Joe Darcy
            Reporter:
            Joe Darcy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: