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

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

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 13
    • 13
    • tools
    • b10

    Description

      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).

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: