On Mon, 29 Aug 2022 12:14:29 GMT, Alexey Ivanov <[email protected]> wrote:
>> src/java.desktop/windows/native/libawt/windows/awt_Window.cpp line 1413:
>>
>>> 1411: {
>>> 1412: /* This window hasn't been sized yet -- use system metrics. */
>>> 1413: jobject target = GetTarget(env);
>>
>> Moving the declaration and deletion of `target` out of `if` block was on
>> purpose? Any particular reason related to the issue?
>
> It's used in the condition of the `if`-block.
It could have been declared, initialized and deleted inside the if block
right......?
-------------
PR: https://git.openjdk.org/jdk/pull/9954