langtools/test/tools/javac/api/6468404/T6468404.java
changeset 27321 c8eceba990bf
parent 17556 eced45696767
child 30730 d3ce7619db2c
equal deleted inserted replaced
27320:f0739350a62d 27321:c8eceba990bf
     1 /*
     1 /*
     2  * Copyright (c) 2006, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2006, 2014, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    86                 null, Collections.singleton(new DummyFO("Dummy")));
    86                 null, Collections.singleton(new DummyFO("Dummy")));
    87         task.setProcessors(Collections.singleton(new P()));
    87         task.setProcessors(Collections.singleton(new P()));
    88         if (!task.call())
    88         if (!task.call())
    89             throw new AssertionError();
    89             throw new AssertionError();
    90     }
    90     }
    91     public static void main(String... args) {
    91     public static void main(String... args) throws IOException {
    92         new T6468404().test(args);
    92         try (T6468404 t = new T6468404()) {
       
    93             t.test(args);
       
    94         }
    93     }
    95     }
    94 
    96 
    95 }
    97 }
    96 
    98 
    97 class DummyFO extends SimpleJavaFileObject {
    99 class DummyFO extends SimpleJavaFileObject {