JDK-8130769 : The new menu can't be shown on the menubar after clicking the "Add" button.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 9
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows
  • CPU: generic
  • Submitted: 2015-07-07
  • Updated: 2018-02-08
  • Resolved: 2015-07-28
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7 JDK 8 JDK 9 Other
6u151Fixed 7u141Fixed 8u131Fixed 9 b78Fixed openjdk7uFixed
Related Reports
Relates :  
Description
Testsuite name:JCK manual
Test name:api/java_awt/interactive/MenuBarTests.html#MenuBarTests
Product tested: JDK 9 b71(32bit)
OS/architecture:win2012-x64
 
Error log file:http://scaaa008.us.oracle.com:9502/runs/00993/993175.ManualSubmit/993175.ManualSubmit-1/workDir/api/java_awt/interactive/MenuBarTests_MenuBarTests.jtr

Reproducible: Always
Reproducible on machine: Evergreen-machine
[If Sometimes] Also reproducible on machine:

Is it a Regression: Yes
[If Regression] Regression introduced in release/build:JDK9b68(32bit) Failed,but JDK9b67(32bit) on same platform Passed.
Test result on the last GAed release for this train:
[if Fail] Test result on FCS: 

Is it a platform specific issue:Yes
 (same build on win7-p1-x86 Failed,
 same build on oel6.4-x86 Passed,
 same build(64bit) on mac10.9-x64 Passed on this issue,but failed as INTJDK-7619979,
 same build(64bit) on solaris11.2-x64 Passed,
 same build(64bit) on solaris11-sparc Passed)
Is it a new (previously unsupported) OS/browser/mode testing: No 
[If new configuration testing] Issue specific to execution mode or OS/browser version:


Steps to reproduce:
1. Install test bundle jdk9b71 from http://jre.us.oracle.com/java/re/jdk/9/promoted/all/b71/bundles/windows-x64/jdk-9-ea-windows-x64.exe to C:/Java/jdk1.9.0
2. Download the JCK-runtime-9.jar from http://jre.us.oracle.com/java/re/jck/9/promoted/latest/bundles/ to C:/jck/ and use C:/Java/jdk1.9.0/bin/java -jar JCK-runtime-9.jar to unzip it 
3.Run the following command:
C:/java/jdk1.9.0/bin/java -showversion -cp C:/jck/JCK-runtime-9/classes;C:/java/jdk1.9.0/ -Djava.security.policy=C:\jck\JCK-runtime-9\lib\jck.policy javasoft.sqe.tests.api.java.awt.interactive.MenuBarTests -TestCaseID ALL

Descriptions:
Please use "Change Font" to change the font of the new menu to be added to the menubar.Some platforms may not support setting of all font attributes of a menu component.  In this case, pressing the "Change Font" button should have no effect on the menu font.  The "Add" operation should perform the appending of a new menu to the menubar.  If the "setHelpMenu" checkbox is selected, the add operation should replace the current Help menu (if it exists) with a new Help menu.  Please verify that the menubar and the Status area change accordingly.Does the menubar behave as specified above?

Actual behavior:
1.When the case launching,pressing the "Add" button,the new menu can't be shown on the menubar,but the status shows that "Menu has been added."refer to MenuBarTest.jpg.
2.Resizing the test frame or clicking other place,the menu shows on the menubar.refer to MenuBarTest1.jpg.

Validation: 
JDK9b67(32bit) on same platform Passed.
JDK9b68(32bit) on same platform Failed.

Comments
We test JDK9b78(32bit) on win8.1-x86,the issue has been fixed succefully.
25-08-2015

Looks like a regression caused because of JDK-7155957.
08-07-2015

RULE api/java_awt/interactive/MenuBarTests_MenuBarTests any any
07-07-2015