11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @bug 6968063 7127924
27 * @summary provide examples of code that generate diagnostics
28 * @modules jdk.compiler/com.sun.tools.javac.api
29 * jdk.compiler/com.sun.tools.javac.file
30 * jdk.compiler/com.sun.tools.javac.main
31 * jdk.compiler/com.sun.tools.javac.util
32 * @build Example CheckExamples DocCommentProcessor
33 * @run main/othervm CheckExamples
34 */
35
36 /*
37 * See CR 7127924 for info on why othervm is used.
38 */
39
40 import java.io.*;
41 import java.lang.reflect.Layer;
42 import java.lang.reflect.Module;
43 import java.nio.file.*;
44 import java.nio.file.attribute.BasicFileAttributes;
45 import java.util.*;
46
47 /**
48 * Check invariants for a set of examples.
49 * -- each example should exactly declare the keys that will be generated when
50 * it is run.
|
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @bug 6968063 7127924
27 * @summary provide examples of code that generate diagnostics
28 * @modules jdk.compiler/com.sun.tools.javac.api
29 * jdk.compiler/com.sun.tools.javac.file
30 * jdk.compiler/com.sun.tools.javac.main
31 * jdk.compiler/com.sun.tools.javac.resources:open
32 * jdk.compiler/com.sun.tools.javac.util
33 * @build Example CheckExamples DocCommentProcessor
34 * @run main/othervm CheckExamples
35 */
36
37 /*
38 * See CR 7127924 for info on why othervm is used.
39 */
40
41 import java.io.*;
42 import java.lang.reflect.Layer;
43 import java.lang.reflect.Module;
44 import java.nio.file.*;
45 import java.nio.file.attribute.BasicFileAttributes;
46 import java.util.*;
47
48 /**
49 * Check invariants for a set of examples.
50 * -- each example should exactly declare the keys that will be generated when
51 * it is run.
|