From 459580459c89c4d99336f075bd1fca3c09b9d4b3 Mon Sep 17 00:00:00 2001 From: TudbuT Date: Mon, 14 Oct 2024 02:33:22 +0200 Subject: [PATCH] fix ProtectionDomain --- .../de/com/baseband/launcher/classloader/SimpleClassLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Loader/src/main/java/de/com/baseband/launcher/classloader/SimpleClassLoader.java b/Loader/src/main/java/de/com/baseband/launcher/classloader/SimpleClassLoader.java index 6e07fe6..a06640e 100644 --- a/Loader/src/main/java/de/com/baseband/launcher/classloader/SimpleClassLoader.java +++ b/Loader/src/main/java/de/com/baseband/launcher/classloader/SimpleClassLoader.java @@ -46,6 +46,6 @@ public class SimpleClassLoader extends ClassLoader { @Override protected Class findClass(String name) { byte[] b = classes.get(name.replace('.', '/') + ".class"); - return defineClass(name, b, 0, b.length); + return defineClass(name, b, 0, b.length, SimpleClassLoader.class.getProtectionDomain()); } }