On Tue, 30 Aug 2022 13:39:00 GMT, Alexey Ivanov <[email protected]> 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

Reply via email to