Fix jpackage to use the correct arch for DEB bundles when running on RPM-based Linux, and vice versa.
The bug was in `jdk.jpackage.internal.LinuxBundlingEnvironment` class. Additionally: - Add missing single quote escape to `error.unexpected-default-package-property.advice` l10n string - Reworded `error.unexpected-package-property` l10n string - JPackageStringBundle: add `cannedFormattedStringAsPattern()`; throw when the number of format arguments doesn't match the number of format fields; add unit tests; ErrorTest, InstallDirTest: follow-up bugfixes - LinuxHelper: fix unexpected `java.lang.AssertionError: Failed: Check [libc] package is in the list of required packages [/bin/sh, /bin/sh, /bin/sh, rpmlib(CompressedFileNames) <= 3.0.4-1, rpmlib(PayloadFilesHavePrefix) <= 4.0-1] of [simplepackagetest] package` error when bundling RPM package on Ubuntu; Make `getDefaultPackageArch()` thread-safe ------------- Commit messages: - Update copyright year - JPackageCommand: add standard assert to check that jpackage's output doesn't contain the "wrong Linux package architecture" error - PackageProperty: bugfix & refactor; LinuxResources.properties: reword "error.unexpected-package-property"; Add missing single quote escape to the "error.unexpected-default-package-property.advice" message - LinuxBundlingEnvironment: fix jpackage correctly pick package arch on system where both RPM and DEB packaging is enabled. - InstallDirTest: bugfix revealed by tightening up JPackageStringBundle - JPackageStringBundle: add cannedFormattedStringAsPattern(); throw when the number of format arguments doesn't match the number of format fields; add unit tests; ErrorTest: follow-up bugfix - LinuxHelper: expose getReleaseSuffix(), make getDefaultPackageArch() thread-safe; JPackageCommand: add fullVersion() and improve version(); don't validate dependencies of alien (non-native) packages; Fix "java.lang.AssertionError: Failed: Check [libc] package is in the list of required packages [/bin/sh, /bin/sh, /bin/sh, rpmlib(CompressedFileNames) <= 3.0.4-1, rpmlib(PayloadFilesHavePrefix) <= 4.0-1] of [simplepackagetest] package" error when bundling RPM package on Ubuntu Changes: https://git.openjdk.org/jdk/pull/30085/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=30085&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8379348 Stats: 567 lines in 14 files changed: 445 ins; 60 del; 62 mod Patch: https://git.openjdk.org/jdk/pull/30085.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/30085/head:pull/30085 PR: https://git.openjdk.org/jdk/pull/30085
