Hello,
I'm not sure if the library is supposed to be thread safe, but I'm having an issue when accessing the database from multiple threads.
In particular, the problem seems to be in this section of the library:
class OfField(override val member: Field) : ValueGetter() {
override fun get(model: Any): Any? {
@Suppress("DEPRECATION") val wasAccessible = member.isAccessible
if (!wasAccessible) member.isAccessible = true
try {
return member.get(model)
} finally {
if (!wasAccessible) member.isAccessible = false
}
}
}
Here the access is not protected by a mutex, so it happens that a Thread tries to get the member while isAccessible has been set to false by another Thread
Hello,
I'm not sure if the library is supposed to be thread safe, but I'm having an issue when accessing the database from multiple threads.
In particular, the problem seems to be in this section of the library:
Here the access is not protected by a mutex, so it happens that a Thread tries to get the member while isAccessible has been set to false by another Thread