From c72a98b99f991ae95ed0258f8e61d6603f346395 Mon Sep 17 00:00:00 2001 From: nickl- Date: Sat, 28 Oct 2017 06:22:42 +0200 Subject: [PATCH] Fix deprecation getPackage to getDefinedPackage --- src/main/javassist/Loader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5