RFR: 8288325: [windows] Actual and Preferred Size of AWT Non-resizable frame are different

Alexey Ivanov aivanov at openjdk.org
Tue Aug 30 13:41:08 UTC 2022


On Tue, 30 Aug 2022 06:57:05 GMT, Tejesh R <tr at openjdk.org> wrote:

>> It's used in the condition of the `if`-block.
>
> 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.

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

PR: https://git.openjdk.org/jdk/pull/9954



More information about the client-libs-dev mailing list