Skip to content

Commit

Permalink
use context class loader for deserialization
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentlauvlwj committed Jan 18, 2023
1 parent 0e19c54 commit 1b818c8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ internal class EntityImplementation(

@Suppress("UNCHECKED_CAST")
private fun readObject(input: ObjectInputStream) {
val javaClass = Class.forName(input.readUTF())
val javaClass = Class.forName(input.readUTF(), true, Thread.currentThread().contextClassLoader)
entityClass = javaClass.kotlin
values = input.readObject() as LinkedHashMap<String, Any?>
changedProperties = LinkedHashSet()
Expand Down

0 comments on commit 1b818c8

Please sign in to comment.