mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-02 16:49:10 +00:00
[TASK] Added URLClassLoaderRedirect.class
This commit is contained in:
@@ -16,10 +16,6 @@ import java.util.Map;
|
||||
|
||||
public class RedirectClassAdapter extends ClassVisitor implements Opcodes {
|
||||
|
||||
public static Map<String, Class<?>> getRedirects() {
|
||||
return redirects;
|
||||
}
|
||||
|
||||
private static final Map<String, Class<?>> redirects = new HashMap<String, Class<?>>();
|
||||
private static PrintStream str_out, class_out;
|
||||
|
||||
@@ -27,10 +23,10 @@ public class RedirectClassAdapter extends ClassVisitor implements Opcodes {
|
||||
redirects.put("java/awt/Toolkit", ToolkitRedirect.class);
|
||||
redirects.put("java/lang/Class", ClassRedirect.class);
|
||||
// redirects.put("java/lang/ClassLoader", ClassLoaderRedirect.class);
|
||||
redirects.put("java/net/URLClassLoader", URLClassLoaderRedirect.class);
|
||||
redirects.put("java/lang/Runtime", RuntimeRedirect.class);
|
||||
redirects.put("java/lang/Thread", ThreadRedirect.class);
|
||||
redirects.put("java/lang/StackTraceElement",
|
||||
StackTraceElementRedirect.class);
|
||||
redirects.put("java/lang/StackTraceElement", StackTraceElementRedirect.class);
|
||||
redirects.put("java/lang/ProcessBuilder", ProcessBuilderRedirect.class);
|
||||
redirects.put("java/lang/System", SystemRedirect.class);
|
||||
}
|
||||
@@ -55,6 +51,10 @@ public class RedirectClassAdapter extends ClassVisitor implements Opcodes {
|
||||
}
|
||||
}
|
||||
|
||||
public static Map<String, Class<?>> getRedirects() {
|
||||
return redirects;
|
||||
}
|
||||
|
||||
public static SecurityException createSecurityException() {
|
||||
Exception e = new Exception();
|
||||
StackTraceElement[] elements = e.getStackTrace();
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
package org.parabot.core.asm.redirect;
|
||||
|
||||
public class URLClassLoaderRedirect {
|
||||
}
|
||||
Reference in New Issue
Block a user