Updated Upstream (Bukkit/CraftBukkit) (#5794)
Upstream has released updates that appear to apply and compile correctly. This update has not been tested by PaperMC and as with ANY update, please do your own testing Bukkit Changes: 7e29f765 SPIGOT-6502: Loading a class from a library of another plugin resulted in a ClassCastException. CraftBukkit Changes: 296df566 Remove outdated build delay.
This commit is contained in:
@@ -76,11 +76,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
private final File file;
|
private final File file;
|
||||||
private final JarFile jar;
|
private final JarFile jar;
|
||||||
@@ -0,0 +0,0 @@ public final class PluginClassLoader extends URLClassLoader { // Spigot
|
@@ -0,0 +0,0 @@ public final class PluginClassLoader extends URLClassLoader { // Spigot
|
||||||
}
|
|
||||||
|
|
||||||
if (checkGlobal) {
|
if (checkGlobal) {
|
||||||
|
// This ignores the libraries of other plugins, unless they are transitive dependencies.
|
||||||
- Class<?> result = loader.getClassByName(name, resolve, description);
|
- Class<?> result = loader.getClassByName(name, resolve, description);
|
||||||
+ Class<?> result = loader.getClassByName(name, resolve, description, this); // Paper - prioritize self
|
+ Class<?> result = loader.getClassByName(name, resolve, description, this); // Paper - prioritize self
|
||||||
|
|
||||||
if (result != null) {
|
// If the class was loaded from a library instead of a PluginClassLoader, we can assume that its associated plugin is a transitive dependency and can therefore skip this check.
|
||||||
PluginDescriptionFile provider = ((PluginClassLoader) result.getClassLoader()).description;
|
if (result != null && result.getClassLoader() instanceof PluginClassLoader) {
|
||||||
|
|||||||
@@ -270,7 +270,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
@@ -0,0 +0,0 @@ public class Main {
|
@@ -0,0 +0,0 @@ public class Main {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Main.class.getPackage().getImplementationVendor() != null && System.getProperty("IReallyKnowWhatIAmDoingISwear") == null) {
|
if (false && Main.class.getPackage().getImplementationVendor() != null && System.getProperty("IReallyKnowWhatIAmDoingISwear") == null) {
|
||||||
- Date buildDate = new Date(Integer.parseInt(Main.class.getPackage().getImplementationVendor()) * 1000L);
|
- Date buildDate = new Date(Integer.parseInt(Main.class.getPackage().getImplementationVendor()) * 1000L);
|
||||||
+ Date buildDate = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'").parse(Main.class.getPackage().getImplementationVendor()); // Paper
|
+ Date buildDate = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'").parse(Main.class.getPackage().getImplementationVendor()); // Paper
|
||||||
|
|
||||||
|
|||||||
@@ -339,7 +339,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ System.setProperty(TerminalConsoleAppender.JLINE_OVERRIDE_PROPERTY, "false"); // Paper
|
+ System.setProperty(TerminalConsoleAppender.JLINE_OVERRIDE_PROPERTY, "false"); // Paper
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Main.class.getPackage().getImplementationVendor() != null && System.getProperty("IReallyKnowWhatIAmDoingISwear") == null) {
|
if (false && Main.class.getPackage().getImplementationVendor() != null && System.getProperty("IReallyKnowWhatIAmDoingISwear") == null) {
|
||||||
@@ -0,0 +0,0 @@ public class Main {
|
@@ -0,0 +0,0 @@ public class Main {
|
||||||
System.out.println("Unable to read system info");
|
System.out.println("Unable to read system info");
|
||||||
}
|
}
|
||||||
|
|||||||
Submodule work/Bukkit updated: 04df07fe9a...7e29f76544
Submodule work/CraftBukkit updated: fae895ac11...296df56673
Reference in New Issue
Block a user