Added netty to plugin classloader exclusion list
Some checks failed
build-docker / build (push) Has been cancelled
build / build (push) Has been cancelled

This commit is contained in:
RaphiMC 2024-07-25 19:49:37 +02:00
parent a2e16b6d4e
commit 703f3f5f29
No known key found for this signature in database
GPG key ID: 0F6BB0657A03AC94

View file

@ -96,6 +96,7 @@ public class PluginManager {
final URL url = file.toURI().toURL();
final TransformerManager transformerManager = new TransformerManager(new LazyFileClassProvider(Collections.singletonList(file), this.rootClassProvider));
final InjectionClassLoader classLoader = new InjectionClassLoader(transformerManager, PluginManager.class.getClassLoader(), url);
classLoader.addProtectedPackage("io.netty.");
try {
final String[] versions = System.getProperty("java.class.version").split("\\.");