On Tue, 30 Aug 2022 06:57:05 GMT, Tejesh R <t...@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