8158855: Fix remaining module dependences in java/lang
Reviewed-by: alanb, mchung, amlu
This commit is contained in:
parent
a94f94cce1
commit
431772cea7
@ -25,6 +25,7 @@
|
|||||||
* @test
|
* @test
|
||||||
* @summary Exercise Class#getModule
|
* @summary Exercise Class#getModule
|
||||||
* @modules java.base/jdk.internal.org.objectweb.asm
|
* @modules java.base/jdk.internal.org.objectweb.asm
|
||||||
|
* java.base/jdk.internal.misc
|
||||||
* java.desktop
|
* java.desktop
|
||||||
* @run testng GetModuleTest
|
* @run testng GetModuleTest
|
||||||
*/
|
*/
|
||||||
@ -35,7 +36,7 @@ import java.lang.reflect.Module;
|
|||||||
|
|
||||||
import jdk.internal.org.objectweb.asm.ClassWriter;
|
import jdk.internal.org.objectweb.asm.ClassWriter;
|
||||||
import static jdk.internal.org.objectweb.asm.Opcodes.*;
|
import static jdk.internal.org.objectweb.asm.Opcodes.*;
|
||||||
import sun.misc.Unsafe;
|
import jdk.internal.misc.Unsafe;
|
||||||
|
|
||||||
import org.testng.annotations.DataProvider;
|
import org.testng.annotations.DataProvider;
|
||||||
import org.testng.annotations.Test;
|
import org.testng.annotations.Test;
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
*
|
*
|
||||||
* @modules jdk.compiler
|
* @modules jdk.compiler
|
||||||
* java.instrument
|
* java.instrument
|
||||||
|
* jdk.zipfs
|
||||||
* @run build ManyMethodsBenchmarkApp ManyMethodsBenchmarkAgent
|
* @run build ManyMethodsBenchmarkApp ManyMethodsBenchmarkAgent
|
||||||
* @run shell MakeJAR3.sh ManyMethodsBenchmarkAgent 'Can-Retransform-Classes: true'
|
* @run shell MakeJAR3.sh ManyMethodsBenchmarkAgent 'Can-Retransform-Classes: true'
|
||||||
* @run main/othervm -javaagent:ManyMethodsBenchmarkAgent.jar ManyMethodsBenchmarkApp
|
* @run main/othervm -javaagent:ManyMethodsBenchmarkAgent.jar ManyMethodsBenchmarkApp
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -31,6 +31,7 @@ import jdk.testlibrary.Utils;
|
|||||||
* @summary test when the agent's class is missing the premain() function.
|
* @summary test when the agent's class is missing the premain() function.
|
||||||
* @library /lib/testlibrary
|
* @library /lib/testlibrary
|
||||||
* @modules java.management
|
* @modules java.management
|
||||||
|
* java.instrument
|
||||||
* @run build jdk.testlibrary.* DummyMain
|
* @run build jdk.testlibrary.* DummyMain
|
||||||
* @run shell ../MakeJAR3.sh NoPremainAgent
|
* @run shell ../MakeJAR3.sh NoPremainAgent
|
||||||
* @run main/othervm -XX:-CreateCoredumpOnCrash NoPremainAgentTest
|
* @run main/othervm -XX:-CreateCoredumpOnCrash NoPremainAgentTest
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -31,6 +31,7 @@ import jdk.testlibrary.Utils;
|
|||||||
* @summary test when the agent's class has a zero arg premain() function.
|
* @summary test when the agent's class has a zero arg premain() function.
|
||||||
* @library /lib/testlibrary
|
* @library /lib/testlibrary
|
||||||
* @modules java.management
|
* @modules java.management
|
||||||
|
* java.instrument
|
||||||
* @run build jdk.testlibrary.* DummyMain
|
* @run build jdk.testlibrary.* DummyMain
|
||||||
* @run shell ../MakeJAR3.sh ZeroArgPremainAgent
|
* @run shell ../MakeJAR3.sh ZeroArgPremainAgent
|
||||||
* @run main/othervm -XX:-CreateCoredumpOnCrash ZeroArgPremainAgentTest
|
* @run main/othervm -XX:-CreateCoredumpOnCrash ZeroArgPremainAgentTest
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
@ -27,7 +27,7 @@
|
|||||||
# @author Stefan Karlsson
|
# @author Stefan Karlsson
|
||||||
#
|
#
|
||||||
# @modules java.instrument
|
# @modules java.instrument
|
||||||
# java.management
|
# jdk.management
|
||||||
# @run shell MakeJAR3.sh RedefineMethodInBacktraceAgent 'Can-Redefine-Classes: true'
|
# @run shell MakeJAR3.sh RedefineMethodInBacktraceAgent 'Can-Redefine-Classes: true'
|
||||||
# @run build RedefineMethodInBacktraceTarget RedefineMethodInBacktraceApp
|
# @run build RedefineMethodInBacktraceTarget RedefineMethodInBacktraceApp
|
||||||
# @run shell RedefineMethodInBacktrace.sh
|
# @run shell RedefineMethodInBacktrace.sh
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2009, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -34,8 +34,6 @@ import static java.lang.invoke.MethodType.*;
|
|||||||
import java.lang.reflect.*;
|
import java.lang.reflect.*;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
import org.junit.*;
|
import org.junit.*;
|
||||||
import static org.junit.Assert.*;
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
|
* @modules java.desktop
|
||||||
* @run main/othervm -XaddExports:java.desktop/sun.awt=java.base AddExportsTest
|
* @run main/othervm -XaddExports:java.desktop/sun.awt=java.base AddExportsTest
|
||||||
* @run main/othervm -XaddExports:java.desktop/sun.awt=ALL-UNNAMED AddExportsTest
|
* @run main/othervm -XaddExports:java.desktop/sun.awt=ALL-UNNAMED AddExportsTest
|
||||||
* @summary Test Module isExported methods with exports changed by -AddExportsTest
|
* @summary Test Module isExported methods with exports changed by -AddExportsTest
|
||||||
|
@ -35,7 +35,7 @@ import static org.testng.Assert.*;
|
|||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
* @library /lib/testlibrary
|
* @library /lib/testlibrary
|
||||||
* @modules java.compiler
|
* @modules jdk.compiler
|
||||||
* @build AccessTest CompilerUtils jdk.testlibrary.*
|
* @build AccessTest CompilerUtils jdk.testlibrary.*
|
||||||
* @run testng AccessTest
|
* @run testng AccessTest
|
||||||
* @summary Driver for test that checks access to public members in exported
|
* @summary Driver for test that checks access to public members in exported
|
||||||
|
Loading…
x
Reference in New Issue
Block a user