RFR: 8286694: Incorrect argument processing in java launcher [v2]
David Holmes
dholmes at openjdk.java.net
Wed May 18 10:55:05 UTC 2022
On Wed, 18 May 2022 07:40:43 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:
>> src/java.base/share/native/libjli/java.c line 1631:
>>
>>> 1629: const char *arg = jargv[i];
>>> 1630: if (arg[0] == '-' && arg[1] == 'J') {
>>> 1631: assert(arg[2] != '\0' && "Invalid JAVA_ARGS or EXTRA_JAVA_ARGS defined by build");
>>
>> Interesting trick.
>
> Since we pass NDEBUG, this assert is disabled in release builds. This is the supposed behavior, right? That we don't do anything on release builds?
Right - that is what I would expect from an assert.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8694
More information about the core-libs-dev
mailing list