Integrated: 8373847: Test javax/swing/JMenuItem/MenuItemTest/bug6197830.java failed because The test case automatically fails when clicking any items in the “Nothing” menu in all four windows (Left-to-right)-Menu Item Test and (Right-to-left)-Menu Item Test
Prasanta Sadhukhan
psadhukhan at openjdk.org
Fri Jan 2 09:56:37 UTC 2026
On Thu, 18 Dec 2025 03:32:15 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
> When user selects any menu item from "No nothing". the following exception happens because PassFailJFrame logArea is not created
>
> java.lang.NullPointerException: Cannot invoke "javax.swing.JTextArea.append(String)" because "PassFailJFrame.logArea" is null
> at PassFailJFrame.lambda$log$0(PassFailJFrame.java:1353)
> at PassFailJFrame.invokeOnEDT(PassFailJFrame.java:570)
> at PassFailJFrame.invokeOnEDTUncheckedException(PassFailJFrame.java:584)
> at PassFailJFrame.log(PassFailJFrame.java:1353)
> at MenuItemTestHelper.lambda$createNoNothingMenu$0(MenuItemTestHelper.java:118)
>
>
> Fix is to create log area
This pull request has now been integrated.
Changeset: 05d2f7f4
Author: Prasanta Sadhukhan <psadhukhan at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/05d2f7f4080f5cc6d3eef97878806e28773d6f70
Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod
8373847: Test javax/swing/JMenuItem/MenuItemTest/bug6197830.java failed because The test case automatically fails when clicking any items in the “Nothing” menu in all four windows (Left-to-right)-Menu Item Test and (Right-to-left)-Menu Item Test
Reviewed-by: serb, aivanov, dnguyen
-------------
PR: https://git.openjdk.org/jdk/pull/28887
More information about the client-libs-dev
mailing list