mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-20 05:14:15 +00:00
Include class path in legacy conversion errors.
This commit is contained in:
parent
235aa19c40
commit
00678ff63c
2 changed files with 2 additions and 6 deletions
|
@ -31,7 +31,7 @@ public interface UnsafeValues {
|
||||||
|
|
||||||
void checkSupported(PluginDescriptionFile pdf);
|
void checkSupported(PluginDescriptionFile pdf);
|
||||||
|
|
||||||
byte[] processClass(PluginDescriptionFile pdf, byte[] clazz);
|
byte[] processClass(PluginDescriptionFile pdf, String path, byte[] clazz);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load an advancement represented by the specified string into the server.
|
* Load an advancement represented by the specified string into the server.
|
||||||
|
|
|
@ -100,11 +100,7 @@ final class PluginClassLoader extends URLClassLoader {
|
||||||
throw new ClassNotFoundException(name, ex);
|
throw new ClassNotFoundException(name, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
classBytes = loader.server.getUnsafe().processClass(description, path, classBytes);
|
||||||
classBytes = loader.server.getUnsafe().processClass(description, classBytes);
|
|
||||||
} catch (Exception ex) {
|
|
||||||
throw new ClassNotFoundException(name, ex);
|
|
||||||
}
|
|
||||||
|
|
||||||
int dot = name.lastIndexOf('.');
|
int dot = name.lastIndexOf('.');
|
||||||
if (dot != -1) {
|
if (dot != -1) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue