On Tue, 14 Jul 2026 04:36:19 GMT, Thomas Stuefe <[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).
>
> I think this needs a release note and possibly a CSR.

@tstuefe Thanks. I have updated the documentation and created a CSR and a 
release note for this behavioral change. Here are the links:

CSR: https://bugs.openjdk.org/browse/JDK-8388185
Release note: https://bugs.openjdk.org/browse/JDK-8388187

Please take a look.

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

PR Comment: https://git.openjdk.org/jdk/pull/31891#issuecomment-4966090358

Reply via email to