RFR: 8279614: The left line of the TitledBorder is not painted on 150 scale factor [v25]
Phil Race
prr at openjdk.java.net
Fri Jun 10 22:15:34 UTC 2022
On Fri, 10 Jun 2022 19:36:50 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:
>> I'd be inclined to remove the initialisation.
>
> I see, the static analyser is not smart enough to notice that the variables get initialised before they're used.
>
> To resolve the error, initialise `at` and `oldStk` with `null`.
>
> `stkWidth` needs to be initialised by 1 as it's currently done, its value is used even if `resetTransform` remains `false`.
Yes, seems the code logic is too much for the compiler
intuitively I'd have expected that it should be, but you'd need to restructure to fix it ..
-------------
PR: https://git.openjdk.org/jdk/pull/7449
More information about the client-libs-dev
mailing list