8286474: Drop --enable-preview from Sealed Classes related tests

Reviewed-by: alanb, jpai, mchung, lancea
This commit is contained in:
Aleksey Shipilev 2022-05-11 05:27:56 +00:00
parent aaeb08eca4
commit d547a707bf
2 changed files with 6 additions and 6 deletions

@ -1,5 +1,5 @@
/*
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -25,8 +25,8 @@
* @test
* @bug 8227046
* @summary reflection test for sealed classes
* @compile --enable-preview -source ${jdk.version} SealedClassesReflectionTest.java
* @run testng/othervm --enable-preview SealedClassesReflectionTest
* @compile SealedClassesReflectionTest.java
* @run testng/othervm SealedClassesReflectionTest
*/
import java.lang.annotation.*;

@ -1,5 +1,5 @@
/*
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -28,8 +28,8 @@
* @library /test/lib
* @modules java.compiler
* @build jdk.test.lib.compiler.CompilerUtils jdk.test.lib.compiler.ModuleInfoMaker TestSecurityManagerChecks
* @run main/othervm -Djava.security.manager=allow --enable-preview TestSecurityManagerChecks named
* @run main/othervm -Djava.security.manager=allow --enable-preview TestSecurityManagerChecks unnamed
* @run main/othervm -Djava.security.manager=allow TestSecurityManagerChecks named
* @run main/othervm -Djava.security.manager=allow TestSecurityManagerChecks unnamed
*/
import java.io.IOException;