langtools/test/tools/javac/api/6410643/T6410643.java
changeset 27321 c8eceba990bf
parent 26264 a09fedde76be
child 30730 d3ce7619db2c
equal deleted inserted replaced
27320:f0739350a62d 27321:c8eceba990bf
    29  * @library ../lib
    29  * @library ../lib
    30  * @build ToolTester
    30  * @build ToolTester
    31  * @run main T6410643
    31  * @run main T6410643
    32  */
    32  */
    33 
    33 
       
    34 import java.io.IOException;
    34 import javax.tools.JavaFileObject;
    35 import javax.tools.JavaFileObject;
    35 import static java.util.Collections.singleton;
    36 import static java.util.Collections.singleton;
    36 
    37 
    37 public class T6410643 extends ToolTester {
    38 public class T6410643 extends ToolTester {
    38 
    39 
    66         testGetTask(s,    null, f);
    67         testGetTask(s,    null, f);
    67         testGetTask(s,    s,     null);
    68         testGetTask(s,    s,     null);
    68         testGetTask(s,    s,    f);
    69         testGetTask(s,    s,    f);
    69         System.err.println("Test result: PASSED");
    70         System.err.println("Test result: PASSED");
    70     }
    71     }
    71     public static void main(String... args) {
    72 
    72         new T6410643().test(args);
    73     public static void main(String... args) throws IOException {
       
    74         try (T6410643 t = new T6410643()) {
       
    75             t.test(args);
       
    76         }
    73     }
    77     }
    74 }
    78 }