RFR: 8288567: [macOS] NPE at sun.lwawt.macosx.CPlatformComponent.setBounds
Sergey Bylokhov
serb at openjdk.org
Fri Jun 17 08:22:50 UTC 2022
On Thu, 16 Jun 2022 11:30:01 GMT, Maxim Kartashev <mkartashev at openjdk.org> wrote:
> Even though I have not been able to reproduce the crash by hand, the problem and the fix are fairly obvious:
> `CWarningWindow` doesn't have a peer, so `platformWindow.getPeer()` can be null in that case. The fix is to accomodate for that in `CPlatformComponent.setBounds()`. Similar provisions exist elsewhere in the vicinity (for ex. `CPlatformLWWindow.setBounds()`, `CPlatformWindow.maximize()`, etc).
The CPlatformComponent is a part of JAWT interface, I think we should not provide such access to the security warning window. So probably it will be better to set CPlatformLWComponent(which is noop) when we create a warning icon?
-------------
PR: https://git.openjdk.org/jdk/pull/9184
More information about the client-libs-dev
mailing list