From f9c3b650a92729528440d4e91aef8764a4a50063 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Kubitz?= Date: Tue, 13 Feb 2024 12:31:27 +0100 Subject: [PATCH] CloseableURLClassLoader: replace deprecated getPackage() The method getPackage(String) from the type ClassLoader is deprecated since version 9 --- .../eclipse/equinox/servletbridge/CloseableURLClassLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.eclipse.equinox.servletbridge/src/org/eclipse/equinox/servletbridge/CloseableURLClassLoader.java b/bundles/org.eclipse.equinox.servletbridge/src/org/eclipse/equinox/servletbridge/CloseableURLClassLoader.java index b1c6f43334d..9718e3edce6 100644 --- a/bundles/org.eclipse.equinox.servletbridge/src/org/eclipse/equinox/servletbridge/CloseableURLClassLoader.java +++ b/bundles/org.eclipse.equinox.servletbridge/src/org/eclipse/equinox/servletbridge/CloseableURLClassLoader.java @@ -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 {