RFR: 8227229: Deprecate the launcher -Xdebug/-debug flags that have not done anything since Java 6 [v4]
Alan Bateman
alanb at openjdk.org
Tue Jul 18 16:56:15 UTC 2023
On Tue, 18 Jul 2023 12:41:32 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:
>> Can I please get a review of this change which proposes to deprecate for removal the `-Xdebug` option and `-debug` option of the `java` command? This addresses https://bugs.openjdk.org/browse/JDK-8227229.
>>
>> As noted in the JBS issue this option is currently a no-op and has been there only for backward compatible since even Java 8 days.
>
> Jaikiran Pai has updated the pull request incrementally with one additional commit since the last revision:
>
> Alan's suggestion for -Xdebug output
I think ParseArguments (in libjli/java.c) could be changed so that it doesn't translate -debug to -Xdebug, instead it can print a warning, like it does for -Xfuture. The reason is -debug is a java launcher option, it's not known to the VM and means that Arguments::parse_each_vm_init_arg doesn't need to mention -debug when it warns about -Xdebug.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/14918#issuecomment-1640592323
More information about the ide-support-dev
mailing list