JDK-6460525 : javax/swing/JFileChooser/6396844/TwentyThousandTest.java times out
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2006-08-16
  • Updated: 2015-04-11
  • Resolved: 2009-08-05
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
7 b68Fixed
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
JDK		    : Fails:  Mustang b94
Platform[s]         : Fails On: Solaris Sparc 9 and Windows Vista
Failing Test [s]    : javax/swing/JFileChooser/6396844/TwentyThousandTest.java


    Test source location:
    =====================
/net/cady/export/jdk1.6.0/latest/ws/j2se/test/javax/swing/JFileChooser/6396844/TwentyThousandTest.java

    jtr file location:
    ==================
/net/cady/export6/results/mustang/b94/reg/regression-reg-sparc9-2006-08-04-15-08-09-0891/workDir/javax/swing/JFileChooser/6396844/TwentyThousandTest.jtr

    How to reproduce:
    ====================
    - Set JAVA_HOME to Mustang b94 solaris-sparc
    - cd /net/cady/export/jdk1.6.0/latest/ws/j2se/test/javax/swing/JFileChooser/6396844
    - /net/koori.sfbay/onestop/jct-tools/2.1.6/archive/fcs/binaries/solaris/bin/jtreg -r:/tmp -w:/tmp ./TwentyThousandTest.java

    Test output:
    =============
----------System.out:(1/19)----------
Create 20000 files
----------System.err:(0/0)----------
result: Failed. Execution failed: Program `/export/jdk/b94/solaris-sparcv9/jdk1.6.0/bin/java' interrupted! (timed out?)

    Test Machine:
    ============
SunOS kalieda 5.9 Generic_118558-11 sun4u sparc SUNW,Sun-Blade-100

Comments
RULE javax/swing/JFileChooser/6396844/TwentyThousandTest.java StatusError Program `...' interrupted! (timed out?)
11-04-2015

EVALUATION There are several different problems that should be fixed: 1. src/share/classes/javax/swing/JFileChooser.java: The MetalFileChooserUI.installUI() method (and other LAFs) registers AWT listener for dialogs and produces memory leaks. It happens when installUI invoked after the showDialog method. Therefore we should detach JFileChooser from Dialog after the Dialog was closed 2. src/share/classes/javax/swing/plaf/basic/BasicDirectoryModel.java LoadFilesThread should check if it's interrupted before folder scanning 3. src/windows/classes/sun/awt/shell/Win32ShellFolderManager2.java ComInvoker shouldn't ignore thread interrupting and should exit from the invoke method. 4. src/share/classes/sun/awt/shell/ShellFolder.java, src/share/classes/sun/awt/shell/ShellFolderManager.java, src/share/classes/sun/swing/FilePane.java, src/windows/classes/sun/awt/shell/Win32ShellFolder2.java, src/windows/classes/sun/awt/shell/Win32ShellFolderManager2.java All methods that used the Win32ShellFolderManager2.ComInvoker#invoke method should catch InterruptedException and process it 5. test/closed/javax/swing/JFileChooser/6396844/TwentyThousandTest.java should use the EDT thread for creating and accessing Swing components
20-07-2009

EVALUATION We should increase time-out for the test.
17-08-2006