langtools/test/tools/javac/processing/model/type/BoundsTest.java
changeset 27319 030080f03e4f
parent 20252 fae5c47ba7a4
child 27544 78713cf9fa0b
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.
    23 
    23 
    24 /*
    24 /*
    25  * @test
    25  * @test
    26  * @bug 6499673
    26  * @bug 6499673
    27  * @library /tools/javac/lib
    27  * @library /tools/javac/lib
       
    28  * @ignore 8062245 Test executes incorrect class
    28  * @build JavacTestingAbstractProcessor BoundsTest
    29  * @build JavacTestingAbstractProcessor BoundsTest
    29  * @run main BoundsTest
    30  * @run main BoundsTest
    30  * @summary Assertion check for TypeVariable.getUpperBound() fails
    31  * @summary Assertion check for TypeVariable.getUpperBound() fails
    31  */
    32  */
    32 
    33 
   111             errors++;
   112             errors++;
   112         }
   113         }
   113     }
   114     }
   114 
   115 
   115     public void run() throws IOException {
   116     public void run() throws IOException {
   116         runOne(Intersection_name, Intersection_contents,
   117         try {
   117                Intersection_bounds, Intersection_supers);
   118             runOne(Intersection_name, Intersection_contents,
   118         runOne(Single_name, Single_contents,
   119                    Intersection_bounds, Intersection_supers);
   119                Single_bounds, Single_supers);
   120             runOne(Single_name, Single_contents,
   120         runOne(NoBounds_name, NoBounds_contents,
   121                    Single_bounds, Single_supers);
   121                NoBounds_bounds, NoBounds_supers);
   122             runOne(NoBounds_name, NoBounds_contents,
   122 
   123                    NoBounds_bounds, NoBounds_supers);
   123         if (0 != errors)
   124 
   124             throw new RuntimeException(errors + " errors occurred");
   125             if (0 != errors)
       
   126                 throw new RuntimeException(errors + " errors occurred");
       
   127         } finally {
       
   128             fm.close();
       
   129         }
   125     }
   130     }
   126 
   131 
   127     public static void main(String... args) throws IOException {
   132     public static void main(String... args) throws IOException {
   128         new IntersectionPropertiesTest().run();
   133         new IntersectionPropertiesTest().run();
   129     }
   134     }