From 7a6efe74db1c3559be6e2fd2c6ee7ec7fcecad96 Mon Sep 17 00:00:00 2001 From: Lukas Eder Date: Tue, 19 Aug 2025 12:45:29 +0200 Subject: [PATCH] [jOOQ/jOOQ#18897] Add information about the lack of thread safety in Meta implementations to Meta Javadoc --- jOOQ/src/main/java/org/jooq/Meta.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/jOOQ/src/main/java/org/jooq/Meta.java b/jOOQ/src/main/java/org/jooq/Meta.java index 8edfd74914..9fe9c77fa7 100644 --- a/jOOQ/src/main/java/org/jooq/Meta.java +++ b/jOOQ/src/main/java/org/jooq/Meta.java @@ -90,7 +90,12 @@ import org.jetbrains.annotations.NotNull; * *

* This type is a {@link Scope} with independent lifecycle and its own - * {@link #data()} map. + * {@link #data()} map. Its implementations are not required to be thread safe + * and are likely not. Clients should access separate instances per thread and + * use-case. Implementations are allowed to cache meta data for faster + * subsequent access, e.g. by means of {@link #snapshot()}. Clients should + * assume that meta data is not up to date if other processes alter the database + * at the same time as clients access this API. * * @author Lukas Eder */