From a20fc7bb82c9d35a690f665a9d63ccac1d2ae4f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=B6=85?= Date: Mon, 18 Nov 2024 09:46:59 +0800 Subject: [PATCH] remove Load all dependent classes from libraries etc --- jvm/src/main/java/io/fission/Server.java | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/jvm/src/main/java/io/fission/Server.java b/jvm/src/main/java/io/fission/Server.java index e29f4629..f059cafa 100644 --- a/jvm/src/main/java/io/fission/Server.java +++ b/jvm/src/main/java/io/fission/Server.java @@ -75,17 +75,6 @@ ResponseEntity specialize(@RequestBody FunctionLoadRequest req) { return ResponseEntity.status(500).body("Failed to initialize the classloader"); } - // Load all dependent classes from libraries etc. - while (e.hasMoreElements()) { - JarEntry je = e.nextElement(); - if (je.isDirectory() || !je.getName().endsWith(".class")) { - continue; - } - String className = je.getName().substring(0, je.getName().length() - CLASS_LENGTH); - className = className.replace('/', '.'); - cl.loadClass(className); - } - // Instantiate the function class fn = (Function) cl.loadClass(entryPoint).newInstance();