RFR: 8340193: Open source several AWT Dialog tests - Batch 1 [v2]
Prasanta Sadhukhan
psadhukhan at openjdk.org
Mon Sep 30 03:32:37 UTC 2024
On Fri, 27 Sep 2024 11:55:21 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
>> I'm getting this error if I use ` PassFailJFrame.log` to `componentResize` method.
>> `java.lang.NullPointerException: Cannot invoke "javax.swing.JTextArea.append(String)" because "PassFailJFrame.logArea" is null`. Since the test is about resize, I've updated only resize related print statement.
>
> Probably component is resized even before PassFailJFrame creates the logArea in Builder interface.
> The instructions says
> "When isResizable is true the dialog is resizable. When isResizable is false the dialog is non-resizable" and you are logging "PassFailJFrame.log("isResizable is set to: " + bResizeState);"
>
> so, it seems ComponentListener is not needed and all these 4 methods can be removed which is only logging and that too is not visible to tester...
this is pending..
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/21174#discussion_r1780355712
More information about the client-libs-dev
mailing list