RFR: 8283215: [macos] Screen Magnifier: Getting java.awt.IllegalComponentStateException when menu item is selected [v2]

Alexander Zuev kizune at openjdk.java.net
Tue Mar 29 22:06:46 UTC 2022


On Tue, 29 Mar 2022 21:59:41 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

>> Well, if the parent is visible then it is all we need to get its screen coordinates. But i also think that surrounding the entire call in try/catch block would work better. Updating the fix.
>
> Why do you need to wrap the entire call, can this exception be thrown by some other methods?

Just for the readability. I could just split the assignment and definition of Point p but the result is the same.

-------------

PR: https://git.openjdk.java.net/jdk/pull/8008



More information about the client-libs-dev mailing list