JDK-8087110 : [TESTBUG] Test javax/swing/JFileChooser/8002077/bug8002077.java fails
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 8u60
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2015-06-10
  • Updated: 2015-11-23
  • Resolved: 2015-07-15
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 8 JDK 9
8u65Fixed 9 b76Fixed
Related Reports
Blocks :  
Relates :  
Relates :  
Description
Testsuite name: Regression(jdk_swing)
Test name(s): javax/swing/JFileChooser/8002077/bug8002077.java
Product(s) tested: JDK 8u60b18(64-bit/32-bit) and JDK 8u60b17(64-bit/32-bit)
OS/architecture: WIndows/x64, Linux/x64
Error log file (if present):  see comments
Reproducible: Always
Reproducible on machine: spb23297.ru.oracle.com, spb23265.ru.oracle.com, spb23313.ru.oracle.com
Is it a Regression: Yes( fails for JDK 8u60b18 but passes for JDK 8u60b17 )
Regression introduced in release/build: JDK 1.8.0_60 b18
Test result on the last GAed release for this train: 
Test result on FCS: 
Is it a platform specific issue: No (fails on Windows and Linux)
[If platform specific issue] Is it a new (previously unsupported) OS/browser/mode testing: No
[If new configuration testing] Issue specific to execution mode or OS/browser version: No

Exception/Error from Log:
----------System.err:(14/796)----------
java.lang.RuntimeException: Save button is not pressed!
	at bug8002077.runTest(bug8002077.java:79)
	at bug8002077.main(bug8002077.java:50)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
	at java.lang.Thread.run(Thread.java:745)

JavaTest Message: Test threw exception: java.lang.RuntimeException: Save button is not pressed!
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Save button is not pressed!

Test run log location:
Steps to reproduce: see comments
Comments
I modified the test so that it tests the original issue reported in JDK-8002077 is not reproduced, and that it passes successfully even when Open / Save buttons have no mnemonics after JDK-8080628 is fixed.
15-07-2015

The test in question is a JDK-8002077. It was added under JDK-8024413.
11-06-2015

Yes it is a test bug. Yes, this test fails because of JDK-8080628 since there is no mnemonic on Save button (by default). It's the intended behavior: 'approveButton' is the default button in JFileChooser, therefore it is accessed by pressing Enter key. That's why no mnemonic is needed. Taking the above into account, this test has become invalid. I am for removing the test.
11-06-2015

Alexey, please evaluate this issue, probably related to JDK-8080628. Is it a test bug?
10-06-2015