diff options
Diffstat (limited to 'src/main/javassist/Loader.java')
-rw-r--r-- | src/main/javassist/Loader.java | 2 |
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); |