< prev index next >

src/java.sql/share/classes/java/sql/DriverManager.java

Print this page
*** 35,10 ***
--- 35,11 ---
  import java.security.PrivilegedAction;
  import java.util.concurrent.CopyOnWriteArrayList;
  import java.util.stream.Stream;
  
  import jdk.internal.reflect.CallerSensitive;
+ import jdk.internal.reflect.CallerSensitiveAdapter;
  import jdk.internal.reflect.Reflection;
  
  
  /**
   * The basic service for managing a set of JDBC drivers.

*** 645,10 ***
--- 646,11 ---
          }
      }
  
  
      //  Worker method called by the public getConnection() methods.
+     @CallerSensitiveAdapter
      private static Connection getConnection(
          String url, java.util.Properties info, Class<?> caller) throws SQLException {
          /*
           * When callerCl is null, we should check the application's
           * (which is invoking this class indirectly)
< prev index next >