tada / pljava

PL/Java is a free add-on module that brings Java™ Stored Procedures, Triggers, Functions, Aggregates, Operators, Types, etc., to the PostgreSQL™ backend.
http://tada.github.io/pljava/
Other
238 stars 77 forks source link

Fix a thinko in context classloader management #396

Closed jcflack closed 2 years ago

jcflack commented 2 years ago

The clever arrangements in Function_vpcInvoke to avoid duplicating the context classloader assignment on the first call were too clever by half, because every call to vpcInvoke will have come through Function_invoke, which already assigned it, and therefore the duplicate assignment was still happening on every call but the first.

Addresses #389.