RFR: 8286694: Incorrect argument processing in java launcher

David Holmes dholmes at openjdk.java.net
Mon May 16 07:02:06 UTC 2022


On Fri, 13 May 2022 08:56:59 GMT, Yasumasa Suenaga <ysuenaga at openjdk.org> wrote:

> GCC 12 reports as following:

Simply considering the compiler warning shouldn't `(arg+2) == NULL` actually be `arg[2] = '\0'` ? as we are looking to see if this arg is only three characters: '-', 'J' and '\0'

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

PR: https://git.openjdk.java.net/jdk/pull/8694


More information about the core-libs-dev mailing list