This is an enhancement of the test case in
[JDK-8296754](https://bugs.openjdk.org/browse/JDK-8296754), which tests against
an archive created by the "boot JDK", which is usually set as the previous
official JDK release when building the JDK repo.
If it's able to connect to an artifactory that hosts valid JDK releases:
- Download and install previous JDK versions (19 through N) from the
artifactory
where N == java.lang.Runtime.version​().major() - 1
- test the interaction of the current JDK versus each of the previous
releases.
If it's not able to connect to such an artifactory, revert to the existing
logic in TestAutoCreateSharedArchiveUpgrade.java (use the test.boot.jdk or
test.previous.jdk properties). Verified with tier1-4 tests.
-------------
Commit messages:
- Removed file added by mistake
- Defaults to old functionality on failure
- 8287873: Add test for using -XX:+AutoCreateSharedArchive with different JDK
versions
Changes: https://git.openjdk.org/jdk/pull/11852/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=11852&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8287873
Stats: 375 lines in 7 files changed: 158 ins; 197 del; 20 mod
Patch: https://git.openjdk.org/jdk/pull/11852.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/11852/head:pull/11852
PR: https://git.openjdk.org/jdk/pull/11852