langtools/test/tools/javac/7079713/TestCircularClassfile.java
changeset 27319 030080f03e4f
parent 10456 22e3243c8a81
child 30730 d3ce7619db2c
equal deleted inserted replaced
27318:4660a5da7d90 27319:030080f03e4f
     1 /*
     1 /*
     2  * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2011, 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.
    98         }
    98         }
    99     }
    99     }
   100 
   100 
   101     public static void main(String... args) throws Exception {
   101     public static void main(String... args) throws Exception {
   102         JavaCompiler comp = ToolProvider.getSystemJavaCompiler();
   102         JavaCompiler comp = ToolProvider.getSystemJavaCompiler();
   103         StandardJavaFileManager fm = comp.getStandardFileManager(null, null, null);
   103         try (StandardJavaFileManager fm = comp.getStandardFileManager(null, null, null)) {
   104         int count = 0;
   104             int count = 0;
   105         for (SourceKind sk1 : SourceKind.values()) {
   105             for (SourceKind sk1 : SourceKind.values()) {
   106             for (SourceKind sk2 : SourceKind.values()) {
   106                 for (SourceKind sk2 : SourceKind.values()) {
   107                 for (TestKind tk : TestKind.values()) {
   107                     for (TestKind tk : TestKind.values()) {
   108                     for (ClientKind ck : ClientKind.values()) {
   108                         for (ClientKind ck : ClientKind.values()) {
   109                         new TestCircularClassfile("sub_"+count++, sk1, sk2, tk, ck).check(comp, fm);
   109                             new TestCircularClassfile("sub_"+count++, sk1, sk2, tk, ck).check(comp, fm);
       
   110                         }
   110                     }
   111                     }
   111                 }
   112                 }
   112             }
   113             }
   113         }
   114         }
   114     }
   115     }