[lworld] RFR: 8342276: [lworld] Apply LIBRARY.properties to stabiliize --enable-preview for tests

Roger Riggs rriggs at openjdk.org
Tue Oct 22 19:52:45 UTC 2024


Create LIBRARY.properties files to set the value of `enablePreview` for sensitive test library roots.

The top level test library is set with `enablePreview = false` so that when compiled they will be able to be used with or without enablePreview.

Individual tests that use preview features and test library files that use preview features will need to be compiled based on the settings in each test.

Some tests are modified to remove explicit building or compilation and fall back to implicit compiles with the prevailing enablePreview setting.

There are other test library roots that declare `enablePreview = true` appropriate to their uses.

-------------

Commit messages:
 - Remove unnecessary @enablePreview tags
 - Cleanup LIBRARY.properties files to fix remaining test issues
 - 8342276: [lworld] Apply LIBRARY.properties to stabiliize --enable-preview for tests

Changes: https://git.openjdk.org/valhalla/pull/1280/files
  Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=1280&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8342276
  Stats: 22 lines in 21 files changed: 7 ins; 10 del; 5 mod
  Patch: https://git.openjdk.org/valhalla/pull/1280.diff
  Fetch: git fetch https://git.openjdk.org/valhalla.git pull/1280/head:pull/1280

PR: https://git.openjdk.org/valhalla/pull/1280


More information about the valhalla-dev mailing list