jdk/test/javax/swing/JFileChooser/6741890/bug6741890.java
changeset 4273 19adfe928d6c
parent 4269 0283fbab043c
child 5506 202f599c92aa
equal deleted inserted replaced
4272:f4742294ef29 4273:19adfe928d6c
    27    @author Pavel Porvatov
    27    @author Pavel Porvatov
    28    @run main bug6741890
    28    @run main bug6741890
    29 */
    29 */
    30 
    30 
    31 import sun.awt.shell.ShellFolder;
    31 import sun.awt.shell.ShellFolder;
       
    32 import sun.awt.OSInfo;
    32 
    33 
    33 import java.io.File;
    34 import java.io.File;
    34 import java.lang.reflect.Field;
    35 import java.lang.reflect.Field;
    35 import java.util.concurrent.Callable;
    36 import java.util.concurrent.Callable;
    36 
    37 
    41     private static final Object mux = new Object();
    42     private static final Object mux = new Object();
    42 
    43 
    43     private static final int COUNT = 100000;
    44     private static final int COUNT = 100000;
    44 
    45 
    45     public static void main(String[] args) throws Exception {
    46     public static void main(String[] args) throws Exception {
       
    47         if (OSInfo.getOSType() != OSInfo.OSType.WINDOWS) {
       
    48             System.out.println("The test is applicable only for Windows. Skipped.");
       
    49 
       
    50             return;
       
    51         }
       
    52 
    46         String tmpDir = System.getProperty("java.io.tmpdir");
    53         String tmpDir = System.getProperty("java.io.tmpdir");
    47 
    54 
    48         if (tmpDir.length() == 0) { //'java.io.tmpdir' isn't guaranteed to be defined
    55         if (tmpDir.length() == 0) { //'java.io.tmpdir' isn't guaranteed to be defined
    49             tmpDir = System.getProperty("user.home");
    56             tmpDir = System.getProperty("user.home");
    50         }
    57         }