Introduce a `PathResolution` to `ExplodedImage` to remove a lot of ad-hoc 
treatments of preview path discovery. Also some general comments and test 
additions.

One interesting thing is the mainline jimage is not mapping 
`META-INF/preview/file` to `file` when preview is enabled; it does map 
`META-INF/preview/dir/file` to `dir/file`. Don't know if this is intended; 
exploded image performs the first mapping, which differs from jimage.

---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

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

Commit messages:
 - Cleanup ExplodedImage and enhance SystemImageTest

Changes: https://git.openjdk.org/valhalla/pull/2545/files
  Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=2545&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8386627
  Stats: 217 lines in 2 files changed: 102 ins; 36 del; 79 mod
  Patch: https://git.openjdk.org/valhalla/pull/2545.diff
  Fetch: git fetch https://git.openjdk.org/valhalla.git pull/2545/head:pull/2545

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

Reply via email to