RFR: 8288325: [windows] Actual and Preferred Size of AWT Non-resizable frame are different
Tejesh R
tr at openjdk.org
Tue Aug 30 14:22:18 UTC 2022
On Tue, 30 Aug 2022 13:39:00 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:
>> It could have been declared, initialized and deleted inside the if block right......?
>
> It was before. Now the `if`-condition uses `target` object:
>
> if (... || JNU_IsInstanceOfByName(env, target, "java/awt/Frame") > 0)
>
> Thus, the `target` object must be declared and initialised outside of the `if`-block.
>
> Previously, it was used inside only, for this reason it was declared and disposed of inside the `if`-block.
Yeah, I didn't notice` JNU_IsInstanceOfByName(`) called in `if` condition...... Got it.....
-------------
PR: https://git.openjdk.org/jdk/pull/9954
More information about the client-libs-dev
mailing list