RFR: 8288325: [windows] Actual and Preferred Size of AWT Non-resizable frame are different
Tejesh R
tr at openjdk.org
Tue Aug 30 06:59:08 UTC 2022
On Mon, 29 Aug 2022 12:14:29 GMT, Alexey Ivanov <aivanov at openjdk.org> 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
More information about the client-libs-dev
mailing list