Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4122748

Thread unsafe code in java/sql/DriverManager.java.

XMLWordPrintable

    • 1.2fcs
    • sparc
    • solaris_2.6
    • Not verified


      allan.jacobs@Eng 1998-03-25

      Thread unsafe code has been identified in the source code for
      the class java.sql.DriverManager. If it is decided that
      synchronization is inappropriate then the source code should be changed
      so that the non-thread safety of the methods are documented.

      Only the static variables that are set and used in thread-unsafe
      methods are listed. Only methods that are thread-unsafe are listed.

      Not all of the thread unsafe methods detected in this survey
      should be changed. The non-private methods that are unsafe should be
      documented as thread-unsafe. Those non-private methods that can
      eventually cause a private, thread-unsafe method to be called in an
      unsynchronized manner need to be documented, too.

      **********************************************************************
      **********************************************************************
      /usr/java/src/java/sql:DriverManager.java:

      Variable: drivers
      Methods: synchronized getConnection(String,Properties),
               getDriver(String),
               synchronized registerDriver(Driver),
               deregisterDriver(Driver),
               getDrivers(String)

      Variable: loginTimeout
      Methods: getLoginTimeout(), setLoginTimeout(int)

      Variable: logStream
      Methods: setLogStream(PrintStream), getLogStream(), println(String)

      Variable: initialized
      Methods: synchronized getConnection(String,Properties),
               getDriver(String),
               synchronized registerDriver(Driver),
               getDrivers(String),
               initialize()

            swhitesunw Seth White (Inactive)
            ajacobssunw Allan Jacobs (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: