]> source.dussan.org Git - javassist.git/commitdiff
Fix deprecation getPackage to getDefinedPackage
authornickl- <github@jigsoft.co.za>
Sat, 28 Oct 2017 04:22:42 +0000 (06:22 +0200)
committernickl- <github@jigsoft.co.za>
Sat, 28 Oct 2017 06:59:37 +0000 (08:59 +0200)
src/main/javassist/Loader.java

index 93f3ce34a29466c6f808ae534867d3dceaf89361..97cc5ca2d84d26f3e45e114592e1ce67102917b6 100644 (file)
@@ -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);