About adba DataSource.Builder

Douglas Surber douglas.surber at oracle.com
Fri Jan 18 01:59:57 UTC 2019


On further thought I think Alex has pointed out an issue that needs to be fixed. 

One of the guiding principles of the design is to avoid imposing work on the implementation 
to protect the client from itself. The assumption is that performance is important and that the 
client accepts the burden of writing correct code in order to gain maximum performance. 
Requiring the implementation to do a bunch of reflection and copy a structure in order to 
partially protect against the client modifying a property value does not conform to that principle. 
Unless you folks say otherwise I am going to change the JavaDoc to say that setProperty 
captures the value and that changes to the value are erroneous and may result in unexpected 
behavior.

Douglas


More information about the jdbc-spec-discuss mailing list