9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
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 * @enablePreview
27 * @modules java.base/jdk.internal.module
28 * @library /test/lib
29 * @build jdk.test.lib.util.ModuleInfoWriter
30 * @run testng ClassFileVersionsTest
31 * @summary Test parsing of module-info.class with different class file versions
32 */
33
34 import java.lang.module.InvalidModuleDescriptorException;
35 import java.lang.module.ModuleDescriptor;
36 import java.lang.module.ModuleDescriptor.Requires.Modifier;
37 import java.nio.ByteBuffer;
38 import java.util.Set;
39
40 import static java.lang.module.ModuleDescriptor.Requires.Modifier.*;
41
42 import jdk.test.lib.util.ModuleInfoWriter;
43
44 import org.testng.annotations.DataProvider;
45 import org.testng.annotations.Test;
46 import static org.testng.Assert.*;
47
48 public class ClassFileVersionsTest {
49 private static final int FEATURE;
|
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
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 * @enablePreview
27 * @modules java.base/jdk.internal.module
28 * @library /test/lib
29 * @run testng ClassFileVersionsTest
30 * @summary Test parsing of module-info.class with different class file versions
31 */
32
33 import java.lang.module.InvalidModuleDescriptorException;
34 import java.lang.module.ModuleDescriptor;
35 import java.lang.module.ModuleDescriptor.Requires.Modifier;
36 import java.nio.ByteBuffer;
37 import java.util.Set;
38
39 import static java.lang.module.ModuleDescriptor.Requires.Modifier.*;
40
41 import jdk.test.lib.util.ModuleInfoWriter;
42
43 import org.testng.annotations.DataProvider;
44 import org.testng.annotations.Test;
45 import static org.testng.Assert.*;
46
47 public class ClassFileVersionsTest {
48 private static final int FEATURE;
|