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

Sergey Bylokhov serb at openjdk.java.net
Tue Mar 29 22:48:15 UTC 2022


On Tue, 29 Mar 2022 22:03:02 GMT, Alexander Zuev <kizune at openjdk.org> wrote:

>> 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.

I think it is better to wrap only one method, it will be obvious where the exception can be thrown and it does not "fill the git history" of the method by all these unnecessary shifting.

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

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



More information about the client-libs-dev mailing list