Presentation at JCrete.org

David Alayachew davidalayachew at gmail.com
Mon Jul 24 15:20:40 UTC 2023


Definitely agreed. It was actually brought up before, both here and on
reddit. I feel like the example in the JEP contributed more than anything
to the confusion.


On Mon, Jul 24, 2023 at 11:19 AM Steve Barham <steve at ethx.net> wrote:

> > On 24 Jul 2023, at 14:41, Brian Goetz <brian.goetz at oracle.com> wrote:
> >
> > I think you've laid it out here: you acknowledge that having LOG."stuff"
> *do* the logging is a bad idea, when there's an entirely sensible
> alternative that gets you the desired safety and deferral of expensive
> formatting:
>
> One observation I’d make here is that the JEP presents an example in the
> form of a QueryBuilder template processor to produce a PreparedStatement.
> Per the Javadoc of Connection, this may well result in a side-effect by
> sending the query to the server for precompilation / validation.
>
> I think it’s worth having a consistent story to people when presenting the
> feature - in the JEP example, it would feel a little unwieldy for
> QueryBuilder to return its own thunky DeferredPreparedStatement, or
> similar, for the caller to work with.
>
> Cheers,
>
> Steve
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/amber-dev/attachments/20230724/d0993517/attachment.htm>


More information about the amber-dev mailing list