JDK-8056156 : [TEST_BUG] Test javax/swing/JFileChooser/8046391/bug8046391.java fails in Windows
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 7u76,7u80
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows
  • CPU: generic
  • Submitted: 2014-08-27
  • Updated: 2015-02-02
  • Resolved: 2014-08-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 7
7u80 b03Fixed
Related Reports
Relates :  
Relates :  
Description
Test name(s):javax/swing/JFileChooser/8046391/bug8046391.java 
JDK tested: jdk1.7_80b02 
OS tested: Windows 
Regression introduced in release/build: N/A 
              
Is it platform specific? Yes 
     
The is failure reproduced: Windows 

----------System.err:(31/2090)*----------
C:\\local\\aurora\\CommonData\\j2se\\test\\javax\\swing\\JFileChooser\\8046391\\bug8046391.java:50: error: illegal start of expression
        SwingUtilities.invokeAndWait(() -> {
                                      ^
C:\\local\\aurora\\CommonData\\j2se\\test\\javax\\swing\\JFileChooser\\8046391\\bug8046391.java:50: error: illegal start of expression
        SwingUtilities.invokeAndWait(() -> {
                                         ^
C:\\local\\aurora\\CommonData\\j2se\\test\\javax\\swing\\JFileChooser\\8046391\\bug8046391.java:50: error: illegal start of expression
        SwingUtilities.invokeAndWait(() -> {
                                           ^
C:\\local\\aurora\\CommonData\\j2se\\test\\javax\\swing\\JFileChooser\\8046391\\bug8046391.java:50: error: ';' expected
        SwingUtilities.invokeAndWait(() -> {
                                            ^
C:\\local\\aurora\\CommonData\\j2se\\test\\javax\\swing\\JFileChooser\\8046391\\bug8046391.java:53: error: 'catch' without 'try'
            } catch (UnsupportedLookAndFeelException e) {
              ^
C:\\local\\aurora\\CommonData\\j2se\\test\\javax\\swing\\JFileChooser\\8046391\\bug8046391.java:53: error: ')' expected
            } catch (UnsupportedLookAndFeelException e) {
                                                    ^
C:\\local\\aurora\\CommonData\\j2se\\test\\javax\\swing\\JFileChooser\\8046391\\bug8046391.java:53: error: not a statement
            } catch (UnsupportedLookAndFeelException e) {
                    ^
C:\\local\\aurora\\CommonData\\j2se\\test\\javax\\swing\\JFileChooser\\8046391\\bug8046391.java:53: error: ';' expected
            } catch (UnsupportedLookAndFeelException e) {
                                                      ^
C:\\local\\aurora\\CommonData\\j2se\\test\\javax\\swing\\JFileChooser\\8046391\\bug8046391.java:59: error: illegal start of type
        });
         ^
C:\\local\\aurora\\CommonData\\j2se\\test\\javax\\swing\\JFileChooser\\8046391\\bug8046391.java:63: error: class, interface, or enum expected
}
^
10 errors
result: Failed. Compilation failed: Compilation failed


test result: Failed. Compilation failed: Compilation failed
Comments
Root cause: Test code used a lambda expression which is unsupported in jdk7.
29-08-2014

is it affecting 7u only?
27-08-2014

RULE javax/swing/JFileChooser/8046391/bug8046391.java CompilationError Compilation failed
27-08-2014