aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist
diff options
context:
space:
mode:
authornickl- <github@jigsoft.co.za>2017-10-28 06:22:42 +0200
committernickl- <github@jigsoft.co.za>2017-10-28 08:59:37 +0200
commitc72a98b99f991ae95ed0258f8e61d6603f346395 (patch)
tree315d33cb29723f1297779d309d77b5bbabac4271 /src/main/javassist
parentcd3aa325301e1db20c229f9dce92f86e914ad798 (diff)
downloadjavassist-c72a98b99f991ae95ed0258f8e61d6603f346395.tar.gz
javassist-c72a98b99f991ae95ed0258f8e61d6603f346395.zip
Fix deprecation getPackage to getDefinedPackage
Diffstat (limited to 'src/main/javassist')
-rw-r--r--src/main/javassist/Loader.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/javassist/Loader.java b/src/main/javassist/Loader.java
index 93f3ce34..97cc5ca2 100644
--- a/src/main/javassist/Loader.java
+++ b/src/main/javassist/Loader.java
@@ -362,7 +362,7 @@ public class Loader extends ClassLoader {
int i = name.lastIndexOf('.');
if (i != -1) {
String pname = name.substring(0, i);
- if (getPackage(pname) == null)
+ if (getDefinedPackage(pname) == null)
try {
definePackage(
pname, null, null, null, null, null, null, null);