Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8342276: [lworld] Apply LIBRARY.properties to stabiliize --enable-preview for tests #1280

Draft
wants to merge 2 commits into
base: lworld
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
* @modules java.base/jdk.internal.module
* @library /test/lib
* @build jdk.test.lib.util.JarUtils
* jdk.test.lib.util.ModuleInfoWriter
* @build TestClassLoader TestClient
* @run main ClassLoaderTest -noPolicy
* @run main ClassLoaderTest -validPolicy
Expand Down
1 change: 0 additions & 1 deletion test/jdk/java/lang/ModuleTests/AnnotationsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
* @enablePreview
* @modules java.base/jdk.internal.module
* @library /test/lib
* @build jdk.test.lib.util.ModuleInfoWriter
* @run testng AnnotationsTest
* @summary Basic test of annotations on modules
*/
Expand Down
1 change: 1 addition & 0 deletions test/jdk/java/lang/instrument/RetransformApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
*
* @modules java.instrument
* @library /test/lib
* @build jdk.test.lib.process.ProcessTools
* @build RetransformAgent asmlib.Instrumentor
* @enablePreview
* @comment The test uses asmlib/Instrumentor.java which relies on ClassFile API PreviewFeature.
Expand Down
1 change: 1 addition & 0 deletions test/jdk/java/lang/invoke/common/LIBRARY.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
enablePreview = true
1 change: 0 additions & 1 deletion test/jdk/java/lang/module/ClassFileVersionsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
* @enablePreview
* @modules java.base/jdk.internal.module
* @library /test/lib
* @build jdk.test.lib.util.ModuleInfoWriter
* @run testng ClassFileVersionsTest
* @summary Test parsing of module-info.class with different class file versions
*/
Expand Down
1 change: 0 additions & 1 deletion test/jdk/java/lang/module/ConfigurationTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
* java.base/jdk.internal.module
* @library /test/lib
* @build ConfigurationTest
* jdk.test.lib.util.ModuleInfoWriter
* jdk.test.lib.util.ModuleUtils
* @run testng ConfigurationTest
* @summary Basic tests for java.lang.module.Configuration
Expand Down
1 change: 0 additions & 1 deletion test/jdk/java/lang/module/ModuleDescriptorTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
* @modules java.base/jdk.internal.access
* java.base/jdk.internal.module
* @library /test/lib
* @build jdk.test.lib.util.ModuleInfoWriter
* @run testng ModuleDescriptorTest
* @summary Basic test for java.lang.module.ModuleDescriptor and its builder
*/
Expand Down
3 changes: 1 addition & 2 deletions test/jdk/java/lang/module/ModuleFinderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* @enablePreview
* @modules java.base/jdk.internal.module
* @library /test/lib
* @build ModuleFinderTest jdk.test.lib.util.ModuleInfoWriter
* @build ModuleFinderTest
* @run testng ModuleFinderTest
* @summary Basic tests for java.lang.module.ModuleFinder
*/
Expand Down Expand Up @@ -827,4 +827,3 @@ static Path createModularJar(Path file, String mid, String ... entries)
}

}

1 change: 0 additions & 1 deletion test/jdk/java/lang/module/ModuleNamesTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
* @modules java.base/jdk.internal.access
* java.base/jdk.internal.module
* @library /test/lib
* @build jdk.test.lib.util.ModuleInfoWriter
* @run testng ModuleNamesTest
* @summary Basic test of reading a module-info.class with module names that
* are legal in class files but not legal in the Java Language
Expand Down
1 change: 0 additions & 1 deletion test/jdk/java/lang/module/MultiReleaseJarTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
* @library /test/lib
* @build MultiReleaseJarTest
* jdk.test.lib.util.JarUtils
* jdk.test.lib.util.ModuleInfoWriter
* @run testng MultiReleaseJarTest
* @run testng/othervm -Djdk.util.jar.enableMultiRelease=false MultiReleaseJarTest
* @summary Basic test of modular JARs as multi-release JARs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
* @modules java.base/jdk.internal.module
* @library /test/lib
* @build jdk.test.lib.util.JarUtils
* jdk.test.lib.util.ModuleInfoWriter
* TestProvider TestClient
* @run main SecurityProviderModularTest CL true
* @run main SecurityProviderModularTest CL false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
* @enablePreview
* @modules java.base/jdk.internal.module
* @library /test/lib
* @build jdk.test.lib.util.JarUtils jdk.test.lib.util.ModuleInfoWriter
* @build jdk.test.lib.util.JarUtils
* @build TestLoginModule JaasClient
* @run main JaasModularClientTest false
* @run main JaasModularClientTest true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
* @enablePreview
* @modules java.base/jdk.internal.module
* @library /test/lib
* @build jdk.test.lib.util.JarUtils jdk.test.lib.util.ModuleInfoWriter
* @build jdk.test.lib.util.JarUtils
* @build TestCallbackHandler TestLoginModule JaasClientWithDefaultHandler
* @run main JaasModularDefaultHandlerTest
*/
Expand Down
2 changes: 1 addition & 1 deletion test/jdk/jdk/modules/incubator/ServiceBinding.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* @enablePreview
* @modules java.base/jdk.internal.module
* @library /test/lib
* @build ServiceBinding TestBootLayer jdk.test.lib.util.ModuleInfoWriter
* @build ServiceBinding TestBootLayer
* @run testng ServiceBinding
* @summary Test service binding with incubator modules
*/
Expand Down
1 change: 0 additions & 1 deletion test/jdk/sun/tools/jcmd/TestProcessHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
* @library /test/lib
* @build test.TestProcess
* jdk.test.lib.util.JarUtils
* jdk.test.lib.util.ModuleInfoWriter
* @run main/othervm TestProcessHelper
*/
public class TestProcessHelper {
Expand Down
2 changes: 1 addition & 1 deletion test/jdk/tools/jlink/JLinkNegativeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* jdk.jlink/jdk.tools.jimage
* jdk.compiler
* @library /test/lib ../lib
* @build tests.* jdk.test.lib.util.ModuleInfoWriter
* @build tests.*
* @run testng JLinkNegativeTest
*/

Expand Down
1 change: 1 addition & 0 deletions test/jdk/tools/lib/LIBRARY.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
enablePreview = true
1 change: 1 addition & 0 deletions test/langtools/lib/annotations/LIBRARY.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
enablePreview = true
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
* @test
* @bug 8144168 8148432
* @summary No type annotations generated for nested lambdas
* @enablePreview
* @library /tools/lib
* @modules jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.main
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
enablePreview = true
1 change: 1 addition & 0 deletions test/langtools/tools/javac/completionDeps/DepsAndAnno.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
* @test
* @bug 8078600
* @summary Make sure -XDcompletionDeps does not cause an infinite loop.
* @enablePreview
* @library /tools/lib
* @modules jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.main
Expand Down
1 change: 1 addition & 0 deletions test/langtools/tools/javac/lib/LIBRARY.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
enablePreview = false
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
* @bug 8067747
* @summary Verify the correct Filer behavior w.r.t. initial inputs
* (should throw FilerException when overwriting initial inputs).
* @enablePreview
* @library /tools/lib /tools/javac/lib
* @modules jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.main
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
* @bug 8204630
* @summary generating an anonymous class with Filer#createClassFile causes an NPE in
* JavacProcessingEnvironment
* @enablePreview
* @library /tools/lib /tools/javac/lib/
* @modules jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.main
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
* @bug 8038455
* @summary Verify that annotation processor can overwrite source and class files it generated
* during previous compilations, and that the Symbols are updated appropriately.
* @enablePreview
* @library /tools/lib /tools/javac/lib/
* @modules jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.main
Expand Down
1 change: 1 addition & 0 deletions test/lib/LIBRARY.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
enablePreview = false # false so the common build is NOT --enable-preview