[FIXED] Access rules in ServerWrapper agent.

This commit is contained in:
zaxar163 2019-01-11 18:06:24 +04:00
parent 439a417f5b
commit 1aa5243ae2
No known key found for this signature in database
GPG key ID: CEE900027AE098E0

View file

@ -15,9 +15,9 @@
public class ServerAgent { public class ServerAgent {
private static boolean isAgentStarted = false; private static boolean isAgentStarted = false;
public static Instrumentation inst; public static Instrumentation inst = null;
public static final class StarterVisitor extends SimpleFileVisitor<Path> { private static final class StarterVisitor extends SimpleFileVisitor<Path> {
@Override @Override
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException { public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {
if (file.toFile().getName().endsWith(".jar")) addJVMClassPath(new JarFile(file.toFile())); if (file.toFile().getName().endsWith(".jar")) addJVMClassPath(new JarFile(file.toFile()));