From b7699df24e445b2a52b0ac50cb2ff8fdd6a12d44 Mon Sep 17 00:00:00 2001 From: wkclz Date: Fri, 29 Dec 2023 11:30:02 +0800 Subject: [PATCH] #2952 packageURL is not jar or nested, it would be return packageURL is not jar or nested, it would be return (cherry picked from commit 88ac227456b5fc48fd6bf7e3dc36060b37bf3319) --- util/src/main/java/io/kubernetes/client/util/ModelMapper.java | 1 + 1 file changed, 1 insertion(+) diff --git a/util/src/main/java/io/kubernetes/client/util/ModelMapper.java b/util/src/main/java/io/kubernetes/client/util/ModelMapper.java index 2f6f4c99d3..e51bfaf3f7 100644 --- a/util/src/main/java/io/kubernetes/client/util/ModelMapper.java +++ b/util/src/main/java/io/kubernetes/client/util/ModelMapper.java @@ -487,6 +487,7 @@ private static void processJarPackage(URL packageURL, String packageName, String String jarFileName = URLDecoder.decode(packageURL.getFile(), "UTF-8"); if (!jarFileName.startsWith("jar:") && !jarFileName.startsWith("nested:")) { logger.error("Loading classes from jar with error packageURL: {}", jarFileName); + return; } logger.info("Loading classes from jar {}", jarFileName); try (JarFile jf = ((JarURLConnection) packageURL.openConnection()).getJarFile()) {