equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2013, 2015, 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. |
24 /* |
24 /* |
25 * @test |
25 * @test |
26 * @bug 8025087 |
26 * @bug 8025087 |
27 * @summary Verify that pre-JDK8 classfiles with default and/or static methods |
27 * @summary Verify that pre-JDK8 classfiles with default and/or static methods |
28 * are refused correctly. |
28 * are refused correctly. |
|
29 * @modules jdk.compiler/com.sun.tools.classfile |
|
30 * jdk.compiler/com.sun.tools.javac.api |
|
31 * jdk.compiler/com.sun.tools.javac.code |
|
32 * jdk.compiler/com.sun.tools.javac.jvm |
|
33 * jdk.compiler/com.sun.tools.javac.main |
|
34 * jdk.compiler/com.sun.tools.javac.util |
29 * @build BadClassfile |
35 * @build BadClassfile |
30 * @run main BadClassfile |
36 * @run main BadClassfile |
31 */ |
37 */ |
32 |
38 |
33 import com.sun.tools.classfile.*; |
39 import com.sun.tools.classfile.*; |