Skip to content

Commit

Permalink
CloseableURLClassLoader: replace deprecated getPackage()
Browse files Browse the repository at this point in the history
The method getPackage(String) from the type ClassLoader is deprecated
since version 9
  • Loading branch information
EcljpseB0T authored and jukzi committed Feb 13, 2024
1 parent 1c9e696 commit e0588cf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ Class<?> defineClass(String name, URL resourceURL, Manifest manifest) throws IOE
if (lastDot != -1) {
String packageName = name.substring(0, lastDot);
synchronized (pkgLock) {
Package pkg = getPackage(packageName);
Package pkg = getDefinedPackage(packageName);
if (pkg != null) {
checkForSealedPackage(pkg, packageName, manifest, connection.getJarFileURL());
} else {
Expand Down

0 comments on commit e0588cf

Please sign in to comment.