Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7903775

Add LIBRARY.properties

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • jtreg7.5
    • None
    • tools
    • None

      Currently, libraries are compiled with the compile-time environment (read: "enable-preview mode") of the test that first causes classes in the library to be compiled. This can lead to unstable and unexpected results.

      One possible solution could be to introduce the use of a new file `LIBRARY.properties` (by analogy with `TEST.properties`) to provide an open-ended mechanism for providing jtreg with any necessary attributes about the library -- including whether it needs to be compiled with `--enable-preview`.

      The file would be placed in the directory specified in an `@library` tag, and read when `jtreg` compiles any classes in that library. See `BuildAction.compileLibrary`.

      Putting information like this with the library itself eliminates any churn in the tests that use the library, both when using preview features, and subsequently, when the features eventually become standard.

            cstein Christian Stein
            jjg Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: