[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-2d-dev
Subject:    Re: RFR: 8288325: [windows] Actual and Preferred Size of AWT Non-resizable frame are different
From:       Tejesh R <tr () openjdk ! org>
Date:       2022-08-30 14:22:18
Message-ID: TstTSHeZ2zctS-FdiE2AbLgdthfF4rybqJh2PJ71XAg=.ebae0f4a-7299-4449-924c-adf100fe7b86 () github ! com
[Download RAW message or body]

On Tue, 30 Aug 2022 13:39:00 GMT, Alexey Ivanov <aivanov@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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic