Thread-safety documentation

Philippe Marschall pm at
Tue Oct 10 08:42:25 UTC 2017


One of the issues I have with the current JDBC specification is it's 
approach to thread-safety documentation or rather lack thereof. This 
leads to repeated discussions, see [1].

It would like to see the new API improving in this area by clearly 
specifying which objects are thread-safe and which ones aren't. An 
obvious candidate for thread-safety would be DataSource.

The only reference to thread-safety I could currently find is:

Results are not required to be thread-safe.

But this affects more or less every class, eg. Transaction.



More information about the jdbc-spec-discuss mailing list