From: nickl- Date: Sat, 28 Oct 2017 04:22:42 +0000 (+0200) Subject: Fix deprecation getPackage to getDefinedPackage X-Git-Tag: rel_3_23_0_ga~13^2~12 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c72a98b99f991ae95ed0258f8e61d6603f346395;p=javassist.git Fix deprecation getPackage to getDefinedPackage --- 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);