summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Ward <chris@chrisgward.com>2013-01-08 22:57:48 +1100
committerChris Ward <chris@chrisgward.com>2013-01-08 22:57:48 +1100
commit02a0fb4f81d73b78a50e0288ce881a79666984da (patch)
treecb9587f80d63009ed86d8173d0f7c8dc73cc9cac
parentd328dcd90127afc67a9884fa5ab4bbfb487561a0 (diff)
downloadEssentials-02a0fb4f81d73b78a50e0288ce881a79666984da.tar
Essentials-02a0fb4f81d73b78a50e0288ce881a79666984da.tar.gz
Essentials-02a0fb4f81d73b78a50e0288ce881a79666984da.tar.lz
Essentials-02a0fb4f81d73b78a50e0288ce881a79666984da.tar.xz
Essentials-02a0fb4f81d73b78a50e0288ce881a79666984da.zip
Fix deprecation nag exception
-rw-r--r--Essentials/src/net/ess3/storage/BukkitConstructor.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/Essentials/src/net/ess3/storage/BukkitConstructor.java b/Essentials/src/net/ess3/storage/BukkitConstructor.java
index 32bf5fc76..819fe4b81 100644
--- a/Essentials/src/net/ess3/storage/BukkitConstructor.java
+++ b/Essentials/src/net/ess3/storage/BukkitConstructor.java
@@ -426,7 +426,14 @@ public class BukkitConstructor extends Constructor
}
else
{
- clazz = plugin.getClassByName(name);
+ try // TODO Is there a better way to to this?
+ {
+ clazz = plugin.getClass().getClassLoader().loadClass(name);
+ }
+ catch (Exception e)
+ {
+ clazz = null;
+ }
}
if (clazz == null)