mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-10 09:02:09 -07:00
Make PaperSimplePluginClassLoader show class which is not found
This commit is contained in:
@@ -1155,7 +1155,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ String path = name.replace('.', '/').concat(".class");
|
+ String path = name.replace('.', '/').concat(".class");
|
||||||
+ JarEntry entry = this.jar.getJarEntry(path);
|
+ JarEntry entry = this.jar.getJarEntry(path);
|
||||||
+ if (entry == null) {
|
+ if (entry == null) {
|
||||||
+ throw new ClassNotFoundException();
|
+ throw new ClassNotFoundException(name);
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ // See URLClassLoader#defineClass(String, Resource)
|
+ // See URLClassLoader#defineClass(String, Resource)
|
||||||
|
Reference in New Issue
Block a user