RFR: 8227229: Deprecate the launcher -Xdebug/-debug flags that have not done anything since Java 6 [v4]

Alan Bateman alanb at openjdk.org
Wed Jul 19 08:04:44 UTC 2023


On Wed, 19 Jul 2023 07:05:45 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:

> I had initially considered that but had noticed that there's a small difference between the generic warning message "Warning: %s option is deprecated and may be removed in a future release." printed by the launcher and the one printed by the VM "OpenJDK 64-Bit Server VM warning: Option -Xdebug was deprecated in JDK 22 and will likely be removed in a future release." But I think that small difference in the warning messages is OK when considered against your stated reasoning that `-debug` isn't known to the VM.

The different deprecation messages is a bit annoying but I think it's better than the VM printing a warning for an option that was never possible to specify to JNI CreateJavaVM.

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

PR Comment: https://git.openjdk.org/jdk/pull/14918#issuecomment-1641612439


More information about the ide-support-dev mailing list