You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by rh...@apache.org on 2021/06/18 18:10:01 UTC

svn commit: r1890895 [4/5] - in /db/derby/code/trunk: ./ java/org.apache.derby.client/org/apache/derby/client/ java/org.apache.derby.client/org/apache/derby/client/am/ java/org.apache.derby.client/org/apache/derby/client/net/ java/org.apache.derby.comm...

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/derbynet/ClientSideSystemPropertiesTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/derbynet/ClientSideSystemPropertiesTest.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/derbynet/ClientSideSystemPropertiesTest.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/derbynet/ClientSideSystemPropertiesTest.java Fri Jun 18 18:09:58 2021
@@ -81,6 +81,8 @@ public class ClientSideSystemPropertiesT
      }
 
     
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     private void checkTraceFileIsPresent() {
         //Make sure the connection above created a trace file. This check is 
         //made in the privilege block below by looking inside the 
@@ -103,6 +105,8 @@ public class ClientSideSystemPropertiesT
     
     /** If the trace Directory doesn't exist then create one. If there is one
      *  already there, then delete everything under it. */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     protected void setUp() throws Exception
     {
     	AccessController.doPrivileged(

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/derbynet/NetworkServerControlApiTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/derbynet/NetworkServerControlApiTest.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/derbynet/NetworkServerControlApiTest.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/derbynet/NetworkServerControlApiTest.java Fri Jun 18 18:09:58 2021
@@ -237,6 +237,8 @@ public class NetworkServerControlApiTest
         assertEquals("OK", response.substring(0,2));
     }
 
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     private Socket privilegedClientSocket(final String host, int port)
                         throws Exception
     {
@@ -348,6 +350,8 @@ public class NetworkServerControlApiTest
      * @param host host to resolve
      * @return InetAddress of host
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     private InetAddress privInetAddressGetByName(final String host)
             throws UnknownHostException {
         try {

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/derbynet/ProtocolTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/derbynet/ProtocolTest.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/derbynet/ProtocolTest.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/derbynet/ProtocolTest.java Fri Jun 18 18:09:58 2021
@@ -167,6 +167,8 @@ public class ProtocolTest
      * @throws IOException if reading/writing to the socket fails
      * @throws UnknownHostException if the server host cannot be resolved
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     private static Socket createSocket()
             throws IOException, UnknownHostException {
         Socket socket = null;

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/derbynet/ServerPropertiesTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/derbynet/ServerPropertiesTest.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/derbynet/ServerPropertiesTest.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/derbynet/ServerPropertiesTest.java Fri Jun 18 18:09:58 2021
@@ -334,6 +334,8 @@ public class ServerPropertiesTest  exten
     /**
      *  Test port setting priority
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public void ttestSetPortPriority() 
     throws SQLException, InterruptedException, IOException {
         // default is 1527. The test harness configuration would

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/engine/ErrorStreamTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/engine/ErrorStreamTest.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/engine/ErrorStreamTest.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/engine/ErrorStreamTest.java Fri Jun 18 18:09:58 2021
@@ -636,6 +636,8 @@ public class ErrorStreamTest extends Bas
         }
     }
 
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     private static void assertNotDirectory(final File f) throws IOException {
         try {
             AccessController.doPrivileged(
@@ -661,6 +663,8 @@ public class ErrorStreamTest extends Bas
     }
 
 
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     private static void assertNotEmpty(final File f) throws IOException {
         try {
             AccessController.doPrivileged(
@@ -682,6 +686,8 @@ public class ErrorStreamTest extends Bas
         }
     }
 
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     private static void assertFileSize(final File f, final int size) throws IOException {
         try {
             AccessController.doPrivileged(
@@ -714,6 +720,8 @@ public class ErrorStreamTest extends Bas
         return PrivilegedFileOpsForTests.delete(f);
     }
 
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     private static String getCanonicalPath(final File f) throws IOException {
         try {
             return AccessController.doPrivileged(
@@ -728,6 +736,8 @@ public class ErrorStreamTest extends Bas
         }
     }
 
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     private static void makeDirIfNotExisting(final String filename) {
         AccessController.doPrivileged(new PrivilegedAction<Void>() {
             public Void run() {
@@ -740,6 +750,8 @@ public class ErrorStreamTest extends Bas
         });
     }
 
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     private static FileOutputStream newFileOutputStream(final File f)
     throws FileNotFoundException {
         try {

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/engine/RestrictiveFilePermissionsTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/engine/RestrictiveFilePermissionsTest.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/engine/RestrictiveFilePermissionsTest.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/engine/RestrictiveFilePermissionsTest.java Fri Jun 18 18:09:58 2021
@@ -531,6 +531,8 @@ public class RestrictiveFilePermissionsT
      * @return true if accesses exist for others that owner (expectedOutcome ==
      *              UNKNOWN)
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings({"BroadCatchBlock", "TooBroadCatch", "UseSpecificCatch", "removal"})
     private static boolean checkAccessToOwner(
             final File file,
             final boolean doContents,

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/jdbc4/AbortTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/jdbc4/AbortTest.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/jdbc4/AbortTest.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/jdbc4/AbortTest.java Fri Jun 18 18:09:58 2021
@@ -135,6 +135,8 @@ public class AbortTest extends Wrapper41
      * Test Connection.abort(Executor) with and without a security manager.
      * </p>
      */
+    // SecurityManager deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public  void    test_basic() throws Exception
     {
         //
@@ -226,6 +228,8 @@ public class AbortTest extends Wrapper41
 
     // Run if we have a security manager. This tests that abort() fails
     // if the caller has not been granted the correct permission.
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     private void    missingPermission( final Wrapper41Conn wrapper1 ) throws Exception
     {
         // should not be able to abort the connection because this code

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/jdbc4/ConnectionMethodsTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/jdbc4/ConnectionMethodsTest.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/jdbc4/ConnectionMethodsTest.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/jdbc4/ConnectionMethodsTest.java Fri Jun 18 18:09:58 2021
@@ -135,6 +135,8 @@ public class ConnectionMethodsTest exten
      *
      * @exception SQLException, FileNotFoundException, Exception if error occurs
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public void testCreateClob() throws   SQLException,
             FileNotFoundException, IOException,
             Exception{
@@ -211,6 +213,8 @@ public class ConnectionMethodsTest exten
      *
      * @exception  SQLException, FileNotFoundException, Exception if error occurs
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public void testCreateBlob() throws   SQLException,
             FileNotFoundException,
             IOException,
@@ -476,6 +480,8 @@ public class ConnectionMethodsTest exten
     /**
      * Test the JDBC 4.1 Connection.abort(Executor) method.
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public void abortVetter( Connection conn0, Connection conn1, Connection conn2 ) throws Exception
     {
         // NOP if called on a closed connection

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/jdbcapi/DataSourceSerializationTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/jdbcapi/DataSourceSerializationTest.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/jdbcapi/DataSourceSerializationTest.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/jdbcapi/DataSourceSerializationTest.java Fri Jun 18 18:09:58 2021
@@ -221,6 +221,8 @@ public class DataSourceSerializationTest
      *
      * @throws Exception on a number of error conditions
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     private void deSerializeDs(
             String className, String version, boolean dsHasJNDI)
             throws Exception {

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/jdbcapi/ResultSetStreamTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/jdbcapi/ResultSetStreamTest.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/jdbcapi/ResultSetStreamTest.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/jdbcapi/ResultSetStreamTest.java Fri Jun 18 18:09:58 2021
@@ -57,6 +57,8 @@ public class ResultSetStreamTest extends
 
     private static String sep;
 
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public void testInsertData() throws SQLException, Exception {
         try {
 
@@ -162,6 +164,8 @@ public class ResultSetStreamTest extends
         }
     }
 
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public void testBinaryStreamProcessing() throws SQLException, Exception {
         try {
 

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/lang/ConstraintCharacteristicsTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/lang/ConstraintCharacteristicsTest.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/lang/ConstraintCharacteristicsTest.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/lang/ConstraintCharacteristicsTest.java Fri Jun 18 18:09:58 2021
@@ -2923,6 +2923,8 @@ public class ConstraintCharacteristicsTe
     /**
      * Privileged lookup of the LCC from a Connection.
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public  static  LanguageConnectionContext    getLCC( final Connection conn )
     {
         return AccessController.doPrivileged

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/lang/DatabaseClassLoadingTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/lang/DatabaseClassLoadingTest.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/lang/DatabaseClassLoadingTest.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/lang/DatabaseClassLoadingTest.java Fri Jun 18 18:09:58 2021
@@ -643,6 +643,8 @@ public class DatabaseClassLoadingTest ex
      * @throws Exception 
      *
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public void testCreateDatabaseJar() throws Exception
     {
         CallableStatement cs = prepareCall(

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/lang/LuceneSupportPermsTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/lang/LuceneSupportPermsTest.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/lang/LuceneSupportPermsTest.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/lang/LuceneSupportPermsTest.java Fri Jun 18 18:09:58 2021
@@ -1784,6 +1784,8 @@ public class LuceneSupportPermsTest exte
     }
 
     /** Return true if the file is a directory */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     private boolean isDirectory( final File file )
         throws IOException, PrivilegedActionException
     {
@@ -1801,6 +1803,8 @@ public class LuceneSupportPermsTest exte
     }
 
     /** Really delete a file */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     private boolean clobberFile( final File file )
         throws IOException, PrivilegedActionException
     {
@@ -1817,6 +1821,8 @@ public class LuceneSupportPermsTest exte
     }
 
     /** List files */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     private File[]  listFiles( final File file )
         throws IOException, PrivilegedActionException
     {

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/lang/NoDBInternalsPermissionTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/lang/NoDBInternalsPermissionTest.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/lang/NoDBInternalsPermissionTest.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/lang/NoDBInternalsPermissionTest.java Fri Jun 18 18:09:58 2021
@@ -102,6 +102,8 @@ public class NoDBInternalsPermissionTest
      * Verify that user code can't call static entry points in ContextService.
      * </p>
      */
+    // AccessControlException deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public  void    test_001_ContextService()
         throws Exception
     {
@@ -132,6 +134,8 @@ public class NoDBInternalsPermissionTest
      * Verify that user code can't call EmbedConnection.getContextManager().
      * </p>
      */
+    // AccessControlException deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public  void    test_002_EmbedConnection()
         throws Exception
     {
@@ -149,6 +153,8 @@ public class NoDBInternalsPermissionTest
      * See DERBY-6630.
      * </p>
      */
+    // AccessControlException deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public  void    test_003_JCECipherFactory()
         throws Exception
     {
@@ -166,6 +172,8 @@ public class NoDBInternalsPermissionTest
      * See DERBY-6636.
      * </p>
      */
+    // AccessControlException deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public  void    test_004_BaseDataFileFactory()
         throws Exception
     {
@@ -182,6 +190,8 @@ public class NoDBInternalsPermissionTest
      * See DERBY-6751.
      * </p>
      */
+    // AccessControlException deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public  void    test_005_EmbedConnection_getLCC()
         throws Exception
     {

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/lang/SecurityPolicyReloadingTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/lang/SecurityPolicyReloadingTest.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/lang/SecurityPolicyReloadingTest.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/lang/SecurityPolicyReloadingTest.java Fri Jun 18 18:09:58 2021
@@ -285,6 +285,8 @@ public class SecurityPolicyReloadingTest
     /**
      * Return true if we have sufficient privilege to read a special property.
      */
+    // AccessControlException deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     private boolean canReadProperty()
         throws Exception
     {

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/lang/XplainStatisticsTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/lang/XplainStatisticsTest.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/lang/XplainStatisticsTest.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/lang/XplainStatisticsTest.java Fri Jun 18 18:09:58 2021
@@ -731,6 +731,8 @@ public class XplainStatisticsTest extend
      * @return a Document object
      * @throws Exception
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     private Object getADocument(final String file) throws Exception {
     	Document document;
     	DocumentBuilderFactory factory =

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/lang/wisconsin.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/lang/wisconsin.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/lang/wisconsin.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/lang/wisconsin.java Fri Jun 18 18:09:58 2021
@@ -217,6 +217,8 @@ public class wisconsin {
      * @param url URL obtained from getTestResource
      * @return An open stream
     */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     protected static InputStream openTestResource(final URL url)
         throws PrivilegedActionException
     {
@@ -238,6 +240,8 @@ public class wisconsin {
      * @param name Resource name, typically - org.apache.derbyTesing.something
      * @return URL to the resource, null if it does not exist.
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     protected static URL getTestResource(final String name)
     {
 

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/management/JMXTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/management/JMXTest.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/management/JMXTest.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/management/JMXTest.java Fri Jun 18 18:09:58 2021
@@ -60,6 +60,8 @@ public class JMXTest extends MBeanTest {
      * </UL>
      * @throws Exception
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public void testDerbyRegisteredMBeansSimpleInfo() throws Exception
     {        
         Set<ObjectName> derbyMBeans = getDerbyDomainMBeans();

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/management/MBeanTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/management/MBeanTest.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/management/MBeanTest.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/management/MBeanTest.java Fri Jun 18 18:09:58 2021
@@ -261,6 +261,8 @@ abstract class MBeanTest extends BaseJDB
      * @param name the name pattern to look for
      * @return a set of names that match
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     Set<ObjectName> queryMBeans(final ObjectName name) throws Exception {
         final MBeanServerConnection serverConn = getMBeanServerConnection(); 
         
@@ -279,6 +281,8 @@ abstract class MBeanTest extends BaseJDB
      * created if it is not already registered.
      * @throws Exception
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     protected ObjectName getApplicationManagementMBean() throws Exception
     {
         /* prepare the Management mbean, which is (so far) the only MBean that
@@ -351,6 +355,8 @@ abstract class MBeanTest extends BaseJDB
      * @return the value returned by the operation being invoked, or 
      *         <code>null</code> if there is no return value.
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     protected Object invokeOperation(final ObjectName objName, 
                                      final String name, 
                                      final Object[] params, 
@@ -377,6 +383,8 @@ abstract class MBeanTest extends BaseJDB
      * @param value the new value of the attribute
      * @throws Exception if an error occurs when changing the attribute
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     void setAttribute(final ObjectName objName, String name, Object value)
             throws Exception {
         final MBeanServerConnection jmxConn = getMBeanServerConnection();
@@ -398,6 +406,8 @@ abstract class MBeanTest extends BaseJDB
      * @return the value of the attribute
      * @throws java.lang.Exception if an unexpected error occurs
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     protected Object getAttribute(final ObjectName objName, final String name) 
             throws Exception {
         

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/management/PlatformConnectionGetter.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/management/PlatformConnectionGetter.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/management/PlatformConnectionGetter.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/management/PlatformConnectionGetter.java Fri Jun 18 18:09:58 2021
@@ -38,6 +38,8 @@ class PlatformConnectionGetter implement
     /**
      * User name ignored, only applicable for remote connections.
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public MBeanServerConnection getMBeanServerConnection(String user,
             String password) throws Exception {
         

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/store/AutomaticIndexStatisticsTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/store/AutomaticIndexStatisticsTest.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/store/AutomaticIndexStatisticsTest.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/store/AutomaticIndexStatisticsTest.java Fri Jun 18 18:09:58 2021
@@ -518,6 +518,8 @@ public class AutomaticIndexStatisticsTes
      * @throws IOException if something goes wrong
      * @throws SQLException if something goes wrong
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     private void copyDb(String newDbName)
             throws IOException, SQLException {
         if (!dbCreated) {

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/store/ClassLoaderBootTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/store/ClassLoaderBootTest.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/store/ClassLoaderBootTest.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/store/ClassLoaderBootTest.java Fri Jun 18 18:09:58 2021
@@ -135,6 +135,8 @@ public class ClassLoaderBootTest extends
     /**
      * Create a new DerbyURLClassLoader inside a priv block.
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     private DerbyURLClassLoader createDerbyClassLoader(final URL[] urls) 
         throws Exception 
     {
@@ -219,6 +221,8 @@ public class ClassLoaderBootTest extends
         JDBCDataSource.shutEngine(ds_1);
 }
 
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     private void setThreadLoader(final ClassLoader which) {
         AccessController.doPrivileged(new PrivilegedAction<Void>(){
             public Void run()  {
@@ -228,6 +232,8 @@ public class ClassLoaderBootTest extends
         });
     }
 
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     private ClassLoader getThreadLoader() {
         return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>(){
             public ClassLoader run()  {

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/store/Derby5582AutomaticIndexStatisticsTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/store/Derby5582AutomaticIndexStatisticsTest.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/store/Derby5582AutomaticIndexStatisticsTest.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/store/Derby5582AutomaticIndexStatisticsTest.java Fri Jun 18 18:09:58 2021
@@ -75,6 +75,8 @@ public class Derby5582AutomaticIndexStat
      * SecurityManager which prevents modification of thread group privtg
      *
      */
+    // SecurityManager deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public static class Derby5582SecurityManager  extends SecurityManager {
         
         public void checkAccess(ThreadGroup tg) {

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/store/MaxLogNumberRecovery.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/store/MaxLogNumberRecovery.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/store/MaxLogNumberRecovery.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/store/MaxLogNumberRecovery.java Fri Jun 18 18:09:58 2021
@@ -92,6 +92,8 @@ public class MaxLogNumberRecovery extend
      * @param name name of the property
      * @param value value of the property
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     private static void setSystemProperty(final String name, 
                         final String value)
     {

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/store/OSReadOnlyTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/store/OSReadOnlyTest.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/store/OSReadOnlyTest.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/store/OSReadOnlyTest.java Fri Jun 18 18:09:58 2021
@@ -305,6 +305,8 @@ public class OSReadOnlyTest extends Base
      *
      * @param dbDir the database directory where the lock file belongs
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     private void createDummyLockFile(String dbDir) {
         final File f = new File(constructDbPath(dbDir), "db.lck");
         AccessController.doPrivileged(new PrivilegedAction<Void>() {
@@ -351,6 +353,8 @@ public class OSReadOnlyTest extends Base
      * @param directory the directory File handle to start recursing from.
      * @return <code>true</code> for success, <code>false</code> otherwise
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public static boolean changeDirectoryToReadOnly( File directory )
     {
         if( null == directory )

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/upgradeTests/UpgradeClassLoader.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/upgradeTests/UpgradeClassLoader.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/upgradeTests/UpgradeClassLoader.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/upgradeTests/UpgradeClassLoader.java Fri Jun 18 18:09:58 2021
@@ -62,6 +62,8 @@ public class UpgradeClassLoader
     static final String jarPath =
             getSystemProperty(_Suite.OLD_RELEASE_PATH_PROPERTY);
 
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     private static String getSystemProperty(final String key) {
         return AccessController.doPrivileged(new PrivilegedAction<String>() {
             public String run() {
@@ -82,6 +84,8 @@ public class UpgradeClassLoader
      * Wrap a class loader around the given version.
      * </p>
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public static ClassLoader makeClassLoader( final int[] version )
     {
         ClassLoader oldLoader = AccessController.doPrivileged(

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/util/CanonTestCase.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/util/CanonTestCase.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/util/CanonTestCase.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/util/CanonTestCase.java Fri Jun 18 18:09:58 2021
@@ -138,6 +138,8 @@ abstract class CanonTestCase extends Bas
      * @throws IOException
      * @throws PrivilegedActionException
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     private void dumpForFail(byte[] rawOutput) throws IOException,
             PrivilegedActionException {
 

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/util/DeadlockWatchdog.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/util/DeadlockWatchdog.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/util/DeadlockWatchdog.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/util/DeadlockWatchdog.java Fri Jun 18 18:09:58 2021
@@ -54,6 +54,8 @@ public class DeadlockWatchdog implements
         notifyAll();
     }
     
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public synchronized void run() {
         final long until = System.currentTimeMillis() + timeout;
         long now;

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/util/FTFileUtil.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/util/FTFileUtil.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/util/FTFileUtil.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/util/FTFileUtil.java Fri Jun 18 18:09:58 2021
@@ -64,6 +64,8 @@ public class FTFileUtil
      * @param name the file's name
 	 * @param newName the file's new name
 	*/
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
 	public static void renameFile(String location, String name , 
                                   String newName) throws Exception
 	{
@@ -163,6 +165,8 @@ public class FTFileUtil
      *              the files in the directory may have been removed.
      */
 
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
 	public static String removeDirectory(final String directory)
         throws PrivilegedActionException
 	{

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/util/IjTestCase.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/util/IjTestCase.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/util/IjTestCase.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/util/IjTestCase.java Fri Jun 18 18:09:58 2021
@@ -76,6 +76,8 @@ public class IjTestCase extends ScriptTe
 	 * Note that the output will include a version number;
 	 * this should get filtered/ignored in compareCanon
 	 */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
 	public void runTest() throws Throwable {
 		String [] args = { "-fr", scriptName };
 		ij.main(args);

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/util/PrivilegedFileOpsForTests.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/util/PrivilegedFileOpsForTests.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/util/PrivilegedFileOpsForTests.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/util/PrivilegedFileOpsForTests.java Fri Jun 18 18:09:58 2021
@@ -57,6 +57,8 @@ public class PrivilegedFileOpsForTests {
      *      or the path it is in, are missing
      * @see File#length
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public static long length(final File file)
             throws SecurityException {
         if (file == null) {
@@ -79,6 +81,8 @@ public class PrivilegedFileOpsForTests {
      *      
      * @see File#getAbsolutePath
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public static String getAbsolutePath(final File file)
             throws SecurityException {
         if (file == null) {
@@ -100,6 +104,8 @@ public class PrivilegedFileOpsForTests {
      *      
      * @see File#getAbsolutePath
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public static URI toURI(final File file)
             throws SecurityException {
         if (file == null) {
@@ -123,6 +129,8 @@ public class PrivilegedFileOpsForTests {
      * @throws IOException if the file cannot be created
      * @see File#createTempFile(String, String, File)
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public static File createTempFile(final String prefix,
                                       final String suffix,
                                       final File directory)
@@ -150,6 +158,8 @@ public class PrivilegedFileOpsForTests {
      *      or the path it is in, are missing
      * @throws FileNotFoundException if the specified file does not exist
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public static FileInputStream getFileInputStream(final File file) 
             throws FileNotFoundException {
     	if (file == null) {
@@ -175,6 +185,8 @@ public class PrivilegedFileOpsForTests {
      *      or the path it is in, are missing
      * @see File#exists
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public static boolean exists(final File file)
             throws SecurityException {
         if (file == null) {
@@ -196,6 +208,8 @@ public class PrivilegedFileOpsForTests {
      *      or the path it is in, are missing
      * @see File#delete
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public static boolean delete(final File file)
             throws SecurityException {
         if (file == null) {
@@ -214,6 +228,8 @@ public class PrivilegedFileOpsForTests {
      * @param dir the directory to create
      * @return {@code true} if and only if the directory was created
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public static boolean mkdir(final File dir) {
         return AccessController.doPrivileged(new PrivilegedAction<Boolean>() {
             public Boolean run() {
@@ -230,6 +246,8 @@ public class PrivilegedFileOpsForTests {
      *                  {@code false} if it should be set for everyone
      * @return {@code true} if the operation succeeded, {@code false} otherwise
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public static boolean setReadable(final File file,
                                       final boolean readable,
                                       final boolean ownerOnly) {
@@ -245,6 +263,8 @@ public class PrivilegedFileOpsForTests {
      * @param file the file to make read-only
      * @return {@code true} if successful, {@code false} otherwise
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public static boolean setReadOnly(final File file) {
         return AccessController.doPrivileged(new PrivilegedAction<Boolean>() {
             @Override
@@ -263,6 +283,8 @@ public class PrivilegedFileOpsForTests {
      * @throws SecurityException if the required permissions to read the file,
      *      or the path it is in, are missing
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public static FileReader getFileReader(final File file)
             throws FileNotFoundException {
         if (file == null) {
@@ -290,6 +312,8 @@ public class PrivilegedFileOpsForTests {
      * @throws SecurityException if the required permissions to write to the file,
      *      or the path it is in, are missing
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public static FileWriter getFileWriter(final File file)
             throws IOException {
         if (file == null) {
@@ -314,6 +338,8 @@ public class PrivilegedFileOpsForTests {
      * @return an array of all the files in the directory
      * @see java.io.File#listFiles()
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public static File[] listFiles(File dir) {
         return AccessController.doPrivileged(
                 (PrivilegedAction<File[]>) () -> dir.listFiles());
@@ -330,6 +356,8 @@ public class PrivilegedFileOpsForTests {
      * @throws IOException
      * @throws SecurityException
      */    
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public static void copy(final File source, final File target) throws IOException {
         try {
             AccessController.doPrivileged(new PrivilegedExceptionAction<Void>() {
@@ -446,6 +474,8 @@ public class PrivilegedFileOpsForTests {
      * @throws SecurityException if the required permissions to write the file,
      *      or the path it is in, are missing
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public static FileOutputStream getFileOutputStream(final File file,
                                                        final boolean append)
             throws FileNotFoundException {
@@ -476,6 +506,8 @@ public class PrivilegedFileOpsForTests {
      * @return A list of files which couldn't be deleted (may be empty).
      * @see org.apache.derbyTesting.junit.BaseTestCase#assertDirectoryDeleted
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public static File[] persistentRecursiveDelete(final File dir)
             throws FileNotFoundException {
         // Fail if the directory doesn't exist.
@@ -545,6 +577,8 @@ public class PrivilegedFileOpsForTests {
      * @param f the file
      * @return A string with file information (human-readable).
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public static String getFileInfo(final File f) {
         return AccessController.doPrivileged(new PrivilegedAction<String>() {
             public String run() {

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/util/PropertyUtil.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/util/PropertyUtil.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/util/PropertyUtil.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/util/PropertyUtil.java Fri Jun 18 18:09:58 2021
@@ -52,6 +52,8 @@ public abstract class PropertyUtil exten
      * Privileged lookup of a Context. Must be private so that user code
      * can't call this entry point.
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     private  static  Context    getContextOrNull( final String contextID )
     {
         if ( System.getSecurityManager() == null )

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/util/T_ConsistencyChecker.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/util/T_ConsistencyChecker.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/util/T_ConsistencyChecker.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/util/T_ConsistencyChecker.java Fri Jun 18 18:09:58 2021
@@ -515,6 +515,8 @@ public class T_ConsistencyChecker
      * Privileged lookup of a Context. Must be private so that user code
      * can't call this entry point.
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     private  static  Context    getContext( final String contextID )
     {
         if ( System.getSecurityManager() == null )

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/util/TestRoutines.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/util/TestRoutines.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/util/TestRoutines.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/util/TestRoutines.java Fri Jun 18 18:09:58 2021
@@ -77,6 +77,8 @@ public class TestRoutines {
 		TESTROUTINE.SET_SYSTEM_PROPERTY(IN PROPERTY_KEY VARCHAR(32000), IN PROPERTY_VALUE VARCHAR(32000))
 		Set a system property
 	*/
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
 	public static void setSystemProperty(final String key, final String value) {
 		
 		// needs to run in a privileged block as it will be
@@ -104,6 +106,8 @@ public class TestRoutines {
 	 * TESTROUTINE.HAS_SECURITY_MANAGER()
 	 * @return 0 if no security manager is installed, 1 if one is.
 	 */
+    // SecurityManager deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
 	public static int hasSecurityManager()
 	{
 		return System.getSecurityManager() == null ? 0 : 1;
@@ -116,6 +120,8 @@ public class TestRoutines {
 	 * @throws PrivilegedActionException 
 	 * @throws IOException 
    */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public static String readFile(final String fileName, final String encoding)
     throws PrivilegedActionException, IOException
     {

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/util/TestUtil.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/util/TestUtil.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/util/TestUtil.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/util/TestUtil.java Fri Jun 18 18:09:58 2021
@@ -167,6 +167,8 @@ public class TestUtil {
 		   TestUtil.DERBY_NET_FRAMEWORK for JCC to Network Server
 		   TestUtil.DB2JCC_FRAMEWORK for JCC to DB2
 	*/
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
 	private static int getFramework()
 	{
 		if (framework != UNKNOWN_FRAMEWORK)
@@ -217,6 +219,8 @@ public class TestUtil {
     /** Get hostName as passed in - if not, set it to "localhost" 
         @return hostName, as passed into system properties, or "localhost"
     */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public static String getHostName()
     {
         String hostName = AccessController.doPrivileged
@@ -267,6 +271,8 @@ public class TestUtil {
 	/**
 	   Load the appropriate driver for the current framework
 	*/
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
 	public static void loadDriver() throws Exception
 	{
               final String driverName;
@@ -897,6 +903,8 @@ public class TestUtil {
 	 * 
 	 * @param log  PrintWriter to print to
 	 */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public static void dumpAllStackTracesIfSupported(PrintWriter log)
 	{
 		try {

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/BaseJDBCTestCase.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/BaseJDBCTestCase.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/BaseJDBCTestCase.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/BaseJDBCTestCase.java Fri Jun 18 18:09:58 2021
@@ -1843,6 +1843,8 @@ public abstract class BaseJDBCTestCase
       * can't resolve the signature of this private method. That is because the engine jar is
       * not on the client-only classpath used by the compatibility tests. Now you know.
 	  */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
 	private static Object	getLanguageConnectionContext( Connection conn )
 	{
         final EmbedConnection   econn = (EmbedConnection) conn;

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/BaseTestCase.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/BaseTestCase.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/BaseTestCase.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/BaseTestCase.java Fri Jun 18 18:09:58 2021
@@ -93,6 +93,8 @@ public abstract class BaseTestCase
      * override runTest, instead use test methods
      * setUp, tearDown methods and decorators.
      */
+    // SecurityManager deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public void runBare() throws Throwable {
         TestConfiguration config = getTestConfiguration();
         boolean trace = config.doTrace();
@@ -261,6 +263,8 @@ public abstract class BaseTestCase
      *
      * @param out the new stream
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     protected static void setSystemOut(final PrintStream out) {
         AccessController.doPrivileged(new PrivilegedAction<Void>() {
             public Void run() {
@@ -275,6 +279,8 @@ public abstract class BaseTestCase
      *
      * @param err the new stream
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     protected static void setSystemErr(final PrintStream err) {
         AccessController.doPrivileged(new PrivilegedAction<Void>() {
             public Void run() {
@@ -290,6 +296,8 @@ public abstract class BaseTestCase
      * @param name name of the property
      * @param value value of the property
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     protected static void setSystemProperty(final String name, 
 					    final String value)
     {
@@ -306,6 +314,8 @@ public abstract class BaseTestCase
      *
      * @param name name of the property
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public static void removeSystemProperty(final String name)
 	{
         AccessController.doPrivileged(new PrivilegedAction<Void>() {
@@ -321,6 +331,8 @@ public abstract class BaseTestCase
      *
      * @param name name of the property
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     protected static String getSystemProperty(final String name)
 	{
         return AccessController.doPrivileged(new PrivilegedAction<String>() {
@@ -339,6 +351,8 @@ public abstract class BaseTestCase
      *        The prefix pattern we are interested.
      * @return The list indicates files with certain prefix.
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     protected static String[] getFilesWith(final File dir, String prefix) {
         return AccessController.doPrivileged(new PrivilegedAction<String[]>() {
                     public String[] run() {
@@ -361,6 +375,8 @@ public abstract class BaseTestCase
      * @param name Resource name, typically - org.apache.derbyTesing.something
      * @return URL to the resource, null if it does not exist.
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     protected static URL getTestResource(final String name)
 	{
         return AccessController.doPrivileged(new PrivilegedAction<URL>() {
@@ -376,6 +392,8 @@ public abstract class BaseTestCase
      * @param url URL obtained from getTestResource
      * @return An open stream
     */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     protected static InputStream openTestResource(final URL url)
         throws PrivilegedActionException
     {
@@ -391,6 +409,8 @@ public abstract class BaseTestCase
      * Assert a security manager is installed.
      *
      */
+    // SecurityManager deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public static void assertSecurityManager()
     {
     	assertNotNull("No SecurityManager installed",
@@ -560,6 +580,8 @@ public abstract class BaseTestCase
      * @param file1 the first file to compare
      * @param file2 the second file to compare
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
 	public static void assertEquals(final File file1, final File file2) {
 		AccessController.doPrivileged
         (new PrivilegedAction<Void>() {
@@ -675,6 +697,8 @@ public abstract class BaseTestCase
 	 * @return the process that was started
 	 * @throws IOException
 	 */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public static Process execJavaCmd
       (
        String jvm,
@@ -1047,6 +1071,8 @@ public abstract class BaseTestCase
      *
      * @return true if we have old style interruptible IO
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public static final boolean hasInterruptibleIO() {
 
         boolean interruptibleIO = false;
@@ -1302,6 +1328,8 @@ public abstract class BaseTestCase
     }
 
     /** Return true if the JVM is at least at the indicated rev level */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public static boolean vmAtLeast( int major, int minor )
     {
         String version = AccessController.doPrivileged

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/BaseTestSetup.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/BaseTestSetup.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/BaseTestSetup.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/BaseTestSetup.java Fri Jun 18 18:09:58 2021
@@ -43,6 +43,8 @@ public abstract class BaseTestSetup exte
      * the test it wraps.
      */
     @Override
+    // SecurityManager deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public void run(TestResult result)
     {
         // install a default security manager if one has not already been

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/ClassLoaderTestSetup.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/ClassLoaderTestSetup.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/ClassLoaderTestSetup.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/ClassLoaderTestSetup.java Fri Jun 18 18:09:58 2021
@@ -44,6 +44,8 @@ public class ClassLoaderTestSetup extend
         super(test);
     }
 
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     private static ClassLoader makeClassLoader() {
         PrivilegedAction<ClassLoader> pa = () -> new URLClassLoader(new URL[0]);
         return AccessController.doPrivileged(pa);
@@ -70,6 +72,8 @@ public class ClassLoaderTestSetup extend
      * @throws  SecurityException
      *          if the current thread cannot set the context ClassLoader
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public static void setThreadLoader(final ClassLoader which) {
         AccessController.doPrivileged(new PrivilegedAction<Void>() {
             @Override
@@ -86,6 +90,8 @@ public class ClassLoaderTestSetup extend
      * </p>
      * @return the current context class loader
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public static ClassLoader getThreadLoader() {
         return AccessController.doPrivileged(
                 new PrivilegedAction<ClassLoader>() {

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/ClasspathSetup.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/ClasspathSetup.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/ClasspathSetup.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/ClasspathSetup.java Fri Jun 18 18:09:58 2021
@@ -78,6 +78,8 @@ public class ClasspathSetup extends Test
     //
     ///////////////////////////////////////////////////////////////////////////////////
 
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     protected void setUp()
     {
         AccessController.doPrivileged
@@ -98,6 +100,8 @@ public class ClasspathSetup extends Test
              );
     }
     
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     protected void tearDown() throws Exception
     {
         AccessController.doPrivileged

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/EnvTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/EnvTest.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/EnvTest.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/EnvTest.java Fri Jun 18 18:09:58 2021
@@ -67,6 +67,8 @@ public class EnvTest extends TestCase {
      *
      * @return the system properties.
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public  static final Properties getSystemProperties() {
         // Fetch system properties in a privileged block.
         return AccessController.doPrivileged(

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/JDBCDataSource.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/JDBCDataSource.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/JDBCDataSource.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/JDBCDataSource.java Fri Jun 18 18:09:58 2021
@@ -142,6 +142,8 @@ public class JDBCDataSource {
      * If a thread context class loader exists then it is used
      * to try and load the class.
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     static javax.sql.DataSource getDataSourceObject(String classname, HashMap beanProperties)
     {
         ClassLoader contextLoader = AccessController.doPrivileged(

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/LocaleTestSetup.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/LocaleTestSetup.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/LocaleTestSetup.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/LocaleTestSetup.java Fri Jun 18 18:09:58 2021
@@ -54,6 +54,8 @@ public class LocaleTestSetup extends Tes
         setDefaultLocale(oldLocale);
 	}
 
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public static void setDefaultLocale(final Locale locale) {
         AccessController.doPrivileged(new PrivilegedAction<Void>() {
             public Void run() {

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/NetworkServerTestSetup.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/NetworkServerTestSetup.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/NetworkServerTestSetup.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/NetworkServerTestSetup.java Fri Jun 18 18:09:58 2021
@@ -351,6 +351,8 @@ final public class NetworkServerTestSetu
      * @param addr the address of the network interface
      * @throws IOException if a server socket couldn't be opened
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     private static void probeServerPort(final int port, final InetAddress addr)
             throws IOException {
         try {
@@ -365,6 +367,8 @@ final public class NetworkServerTestSetu
         }
     }
 
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     private void startWithAPI() throws Exception
     {
         BaseTestCase.println("Starting network server with NetworkServerControl api:");

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/SecurityManagerSetup.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/SecurityManagerSetup.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/SecurityManagerSetup.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/SecurityManagerSetup.java Fri Jun 18 18:09:58 2021
@@ -113,6 +113,9 @@ public final class SecurityManagerSetup
     }
 
     static final boolean jacocoEnabled = checkIfJacocoIsRunning();
+
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     private static boolean checkIfJacocoIsRunning() {
         return AccessController.doPrivileged(new PrivilegedAction<Boolean>() {
                 public Boolean run() {
@@ -140,7 +143,10 @@ public final class SecurityManagerSetup
 	private final String decoratorPolicyResource;
     /** An additional policy to install (may be {@code null}). */
     private final String additionalPolicyResource;
-	private SecurityManager decoratorSecurityManager = null;
+
+    // SecurityManager deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
+    private SecurityManager decoratorSecurityManager = null;
 	
     public SecurityManagerSetup(Test test, String policyResource) {
         this(test, policyResource, false);
@@ -176,6 +182,8 @@ public final class SecurityManagerSetup
 	 * @param policyResource - policy resource. If null use default testing policy
 	 * @param securityManager - Custom SecurityManager if null use the system security manager
 	 */
+    // SecurityManager deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
 	public SecurityManagerSetup(Test test, String policyResource, SecurityManager securityManager)
 	{
         this(test, policyResource, false);
@@ -257,10 +265,14 @@ public final class SecurityManagerSetup
 		installSecurityManager( getDefaultPolicy() );
 	}
 
+    // SecurityManager deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
 	private static void installSecurityManager(String policyFile) {
 	   installSecurityManager(policyFile, System.getSecurityManager());
 	}
 
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
 	private static void installSecurityManager(String policyFile, final SecurityManager sm)
 			 {
 		if (externalSecurityManagerInstalled)
@@ -366,6 +378,8 @@ public final class SecurityManagerSetup
      * if the jar has a URL with a file protocol.
 	 * 
 	 */
+    // SecurityManager deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
 	private static boolean determineClasspath()
 	{
 		// Security manager already installed, assume that
@@ -509,6 +523,8 @@ public final class SecurityManagerSetup
 	/**
 	 * Get the URL of the code base from a class.
 	 */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
 	static URL getURL(final Class cl)
 	{
         return AccessController.doPrivileged(new PrivilegedAction<URL>() {
@@ -531,6 +547,8 @@ public final class SecurityManagerSetup
     /**
      * Remove the security manager.
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     private static void uninstallSecurityManager()
     {
 
@@ -603,6 +621,8 @@ public final class SecurityManagerSetup
      * @return The resource location string for a policy file.
      * @throws IOException if reading or writing to one of the resources fails
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     private static String mergePolicies(URL policy1, URL policy2)
             throws IOException {
         // Create target directory for the merged policy files.
@@ -649,6 +669,8 @@ public final class SecurityManagerSetup
     }
 
     /** Opens the resource stream in a privileged block. */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     private static InputStream openStream(final URL resource)
             throws IOException {
         try {
@@ -665,6 +687,8 @@ public final class SecurityManagerSetup
     }
 
     /** Creates the specified directory if it doesn't exist. */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     private static void mkdir(final File dir) {
         AccessController.doPrivileged(
             new PrivilegedAction<Void>() {

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/SpawnedProcess.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/SpawnedProcess.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/SpawnedProcess.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/SpawnedProcess.java Fri Jun 18 18:09:58 2021
@@ -601,6 +601,8 @@ public final class SpawnedProcess {
      * @return pid
      * @throws PrivilegedActionException
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public int getPid() throws PrivilegedActionException {
         if (!isWindowsPlatform() && !isIBMJVM()) {
             return AccessController.doPrivileged(

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/SupportFilesSetup.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/SupportFilesSetup.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/SupportFilesSetup.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/SupportFilesSetup.java Fri Jun 18 18:09:58 2021
@@ -131,6 +131,8 @@ public class SupportFilesSetup extends T
         DropDatabaseSetup.removeDirectory(EXTOUT);
     }
     
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public  static   void privCopyFiles(final String dirName, final String[] resources, final String[] targetNames)
     throws PrivilegedActionException
     {
@@ -233,6 +235,8 @@ public class SupportFilesSetup extends T
      * Get the full name of the file.
      * @param name Base name for the resource.
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public static String getReadOnlyFileName(final String name)
     {
         return AccessController.doPrivileged(
@@ -248,6 +252,8 @@ public class SupportFilesSetup extends T
      * @param name short name of file
      * @return absolute path of file in EXTINOUT
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public static String getReadWriteFileName(final String name)
     {
         return AccessController.doPrivileged(
@@ -281,6 +287,8 @@ public class SupportFilesSetup extends T
         return new File(dir, name);
     }
     
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     private static URL getURL(final File file) throws MalformedURLException
     {
         try {

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/TestConfiguration.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/TestConfiguration.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/TestConfiguration.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/TestConfiguration.java Fri Jun 18 18:09:58 2021
@@ -1389,6 +1389,8 @@ public final class TestConfiguration {
      *
      * @return the system properties.
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public  static final Properties getSystemProperties() {
         // Fetch system properties in a privileged block.
         return AccessController.doPrivileged(
@@ -1886,6 +1888,8 @@ public final class TestConfiguration {
      * starts the Networs server for this configuration.
      *
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public void startNetworkServer() throws SQLException
     {
         Exception failException = null;
@@ -2021,6 +2025,8 @@ public final class TestConfiguration {
      * <LI> testname - value of test.getName()
      *  </UL>
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     File getFailureFolder(TestCase test){
         
         StringBuffer sb = new StringBuffer();

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/TimeZoneTestSetup.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/TimeZoneTestSetup.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/TimeZoneTestSetup.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/TimeZoneTestSetup.java Fri Jun 18 18:09:58 2021
@@ -70,6 +70,8 @@ public class TimeZoneTestSetup extends B
         requestedDefault = null;
     }
     
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     public static void setDefault(final TimeZone tz) {
         if (tz== null) {
             throw new IllegalArgumentException("tz cannot be <null>");

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/unitTests/crypto/T_Cipher.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/unitTests/crypto/T_Cipher.java?rev=1890895&r1=1890894&r2=1890895&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/unitTests/crypto/T_Cipher.java (original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/unitTests/crypto/T_Cipher.java Fri Jun 18 18:09:58 2021
@@ -94,6 +94,8 @@ public class T_Cipher extends T_Generic
         return "DES/CBC/NoPadding";
     }
 
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     protected String getProvider()
     {
 	// allow for alternate providers
@@ -611,6 +613,8 @@ public class T_Cipher extends T_Generic
 	 * Delete a file in a Privileged block as these tests are
 	 * run under the embedded engine code.
 	 */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
 	private void deleteFile(final File f)
 	{
         AccessController.doPrivileged(new PrivilegedAction<Void>() {
@@ -626,6 +630,8 @@ public class T_Cipher extends T_Generic
      * Privileged startup. Must be private so that user code
      * can't call this entry point.
      */
+    // AccessController.doPrivileged() deprecated for removal by JEP 411 https://openjdk.java.net/jeps/411
+    @SuppressWarnings("removal")
     private  static  Object  startSystemModule( final String factoryInterface )
         throws StandardException
     {