langtools/test/tools/javac/processing/model/type/IntersectionPropertiesTest.java
changeset 27319 030080f03e4f
parent 22152 aec1999bb1fa
child 30730 d3ce7619db2c
equal deleted inserted replaced
27318:4660a5da7d90 27319:030080f03e4f
     1 /*
     1 /*
     2  * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2012, 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.
    74             errors++;
    74             errors++;
    75         }
    75         }
    76     }
    76     }
    77 
    77 
    78     public void run() throws IOException {
    78     public void run() throws IOException {
    79         runOne(Intersection_name, Intersection_contents);
    79         try {
       
    80             runOne(Intersection_name, Intersection_contents);
    80 
    81 
    81         if (0 != errors)
    82             if (0 != errors)
    82             throw new RuntimeException(errors + " errors occurred");
    83                 throw new RuntimeException(errors + " errors occurred");
       
    84         } finally {
       
    85             fm.close();
       
    86         }
    83     }
    87     }
    84 
    88 
    85     public static void main(String... args) throws IOException {
    89     public static void main(String... args) throws IOException {
    86         new IntersectionPropertiesTest().run();
    90         new IntersectionPropertiesTest().run();
    87     }
    91     }