[lworld] RFR: 8373622: [lworld] Enabling jimage changes break tests with inMemoryJavaCompiler

Coleen Phillimore coleenp at openjdk.org
Fri Dec 12 20:58:31 UTC 2025


This change tests the properties: java.test.opts and the property for test.enable.preview (set when test has @enablePreview), and will pass --enable-preview -source 26 to the inMemoryJavaCompiler compiler task.  I don't really like this but the alternative is to do the same thing from all the tests, and pass this down as parameters.  Better alternative ideas are welcome.

When the jimage code is checked in, a bunch of tests fail because of this problem.

Testing with tier1-4.

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

Commit messages:
 - 8373622: [lworld] Enabling jimage changes break tests with inMemoryJavaCompiler

Changes: https://git.openjdk.org/valhalla/pull/1797/files
  Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=1797&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8373622
  Stats: 16 lines in 1 file changed: 16 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/valhalla/pull/1797.diff
  Fetch: git fetch https://git.openjdk.org/valhalla.git pull/1797/head:pull/1797

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


More information about the valhalla-dev mailing list