The PostgreSQL pgJDBC team is proud to announce the release of version 42.6.0.
This version has two major changes.
1. The use of synchronized has been replaced with re-entrant locks. This
is will facilitate the use of lightweight threads aka Project Loom.
2. Previously we used `Object.finalize()` to monitor for connection
leaks. Java 9 has Cleaner, but we still need to support Java 8.
thankfully Juan Lopes wrote
[LazyCleaner](https://github.com/juanplopes/lazycleaner). We borrowed the code
(Thanks again!) and are now using LazyCleaner instead of finalize().
Many thanks to those who contributed!
See the
[ChangeLog](https://jdbc.postgresql.org/changelogs/2023-03-17-42.6.0-release/)
for details.
The release has been pushed to Maven central.
The source can be found at our [GitHub repo](https://github.com/pgjdbc/pgjdbc)