About adba DataSource.Builder
Mark Rotteveel
mark at lawinegevaar.nl
Fri Jan 18 08:44:29 UTC 2019
On 18-1-2019 02:59, Douglas Surber wrote:
> 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.
That sounds like a good plan to me.
Mark
--
Mark Rotteveel
More information about the jdbc-spec-discuss
mailing list