-
Bug
-
Resolution: Fixed
-
P3
-
1.2.0
-
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()