On Tue, 14 Jul 2026 03:57:41 GMT, Guanqiang Han <[email protected]> wrote:
> Please review this change, thanks! > > **Description:** > > `java -XshowSettings` without an application currently prints the requested > settings, then prints usage information and exits with code 1. > > **Solution:** > > Treat `-XshowSettings` as an option that can be used without an application > target. During argument parsing, do not mark the absence of a main class or > JAR file as an error when `-XshowSettings` is specified. After the settings > and any explicitly requested launcher output have been processed, exit > normally if no application was provided. > > > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai). This pull request has now been integrated. Changeset: 68ca4e0f Author: Guanqiang Han <[email protected]> Committer: David Holmes <[email protected]> URL: https://git.openjdk.org/jdk/commit/68ca4e0f932506879a1d1c2eb3e30b172fac0ba9 Stats: 35 lines in 3 files changed: 30 ins; 0 del; 5 mod 8387750: 'java -XshowSettings' alone should not be an error Reviewed-by: kevinw, alanb ------------- PR: https://git.openjdk.org/jdk/pull/31891
