RFR: 8298921: Create a regression test for JDK-8139581
Sergey Bylokhov
serb at openjdk.org
Sun Jan 1 05:24:50 UTC 2023
On Fri, 16 Dec 2022 10:21:35 GMT, Srinivas Mandalika <smandalika at openjdk.org> wrote:
> Create a regression test for JDK-8139581
>
> As described in JDK-8139581, when an AWT panel with AWT components, for example "java.awt.Button", is removed from AWT frame and added again to the same frame, then some AWT components contained in the panel are not drawn, however, clicking in the area of not drawn button leads to drawing of the button.
>
> Test has a swing and awt component in a panel. It then removes and adds back the panel from/into the frame, to verify that they are repainted back properly.
test/jdk/java/awt/Component/ComponentRedrawnTest.java line 163:
> 161: });
> 162: } catch (Exception e) {
> 163: e.printStackTrace();
It is better to rethrow this exception and do not skip it, since the later part of the code will not make any sense after this exception.
-------------
PR: https://git.openjdk.org/jdk/pull/11707
More information about the client-libs-dev
mailing list