[jdk26u] RFR: 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

Trupti Patil duke at openjdk.org
Fri Feb 27 06:56:16 UTC 2026


This is a backport of JDK-8373847 
bug6197830.java failed with java.lang.NullPointerException when user selected any menu item from "No nothing", because PassFailJFrame logArea was not created. Fixed the test to create log area, and the test passed.

JTREG Testing - Test passed on manual run via JTreg Command.

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

Commit messages:
 - Backport 05d2f7f4080f5cc6d3eef97878806e28773d6f70

Changes: https://git.openjdk.org/jdk26u/pull/80/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk26u&pr=80&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8373847
  Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk26u/pull/80.diff
  Fetch: git fetch https://git.openjdk.org/jdk26u.git pull/80/head:pull/80

PR: https://git.openjdk.org/jdk26u/pull/80


More information about the jdk-updates-dev mailing list