|
|
|
@ -7749,7 +7749,7 @@ public interface AgentBuilder {
|
|
|
|
|
* MethodType instantiatedMethodType) throws Exception { |
|
|
|
|
* Unsafe unsafe = Unsafe.getUnsafe(); |
|
|
|
|
* {@code Class<?>} lambdaClass = unsafe.defineAnonymousClass(caller.lookupClass(), |
|
|
|
|
* (byte[]) ClassLoader.getSystemClassLoader().loadClass("net.bytebuddy.agent.builder.LambdaFactory").getDeclaredMethod("make", |
|
|
|
|
* (byte[]) ClassLoader.getSystemClassLoader().loadClass("com.fr.third.net.bytebuddy.agent.builder.LambdaFactory").getDeclaredMethod("make", |
|
|
|
|
* Object.class, |
|
|
|
|
* String.class, |
|
|
|
|
* Object.class, |
|
|
|
@ -7799,7 +7799,7 @@ public interface AgentBuilder {
|
|
|
|
|
methodVisitor.visitVarInsn(Opcodes.ALOAD, 0); |
|
|
|
|
methodVisitor.visitMethodInsn(Opcodes.INVOKEVIRTUAL, "java/lang/invoke/MethodHandles$Lookup", "lookupClass", "()Ljava/lang/Class;", false); |
|
|
|
|
methodVisitor.visitMethodInsn(Opcodes.INVOKESTATIC, "java/lang/ClassLoader", "getSystemClassLoader", "()Ljava/lang/ClassLoader;", false); |
|
|
|
|
methodVisitor.visitLdcInsn("net.bytebuddy.agent.builder.LambdaFactory"); |
|
|
|
|
methodVisitor.visitLdcInsn("com.fr.third.net.bytebuddy.agent.builder.LambdaFactory"); |
|
|
|
|
methodVisitor.visitMethodInsn(Opcodes.INVOKEVIRTUAL, "java/lang/ClassLoader", "loadClass", "(Ljava/lang/String;)Ljava/lang/Class;", false); |
|
|
|
|
methodVisitor.visitLdcInsn("make"); |
|
|
|
|
methodVisitor.visitIntInsn(Opcodes.BIPUSH, 9); |
|
|
|
@ -7956,7 +7956,7 @@ public interface AgentBuilder {
|
|
|
|
|
* } |
|
|
|
|
* Unsafe unsafe = Unsafe.getUnsafe(); |
|
|
|
|
* {@code Class<?>} lambdaClass = unsafe.defineAnonymousClass(caller.lookupClass(), |
|
|
|
|
* (byte[]) ClassLoader.getSystemClassLoader().loadClass("net.bytebuddy.agent.builder.LambdaFactory").getDeclaredMethod("make", |
|
|
|
|
* (byte[]) ClassLoader.getSystemClassLoader().loadClass("com.fr.third.net.bytebuddy.agent.builder.LambdaFactory").getDeclaredMethod("make", |
|
|
|
|
* Object.class, |
|
|
|
|
* String.class, |
|
|
|
|
* Object.class, |
|
|
|
@ -8079,7 +8079,7 @@ public interface AgentBuilder {
|
|
|
|
|
methodVisitor.visitVarInsn(Opcodes.ALOAD, 0); |
|
|
|
|
methodVisitor.visitMethodInsn(Opcodes.INVOKEVIRTUAL, "java/lang/invoke/MethodHandles$Lookup", "lookupClass", "()Ljava/lang/Class;", false); |
|
|
|
|
methodVisitor.visitMethodInsn(Opcodes.INVOKESTATIC, "java/lang/ClassLoader", "getSystemClassLoader", "()Ljava/lang/ClassLoader;", false); |
|
|
|
|
methodVisitor.visitLdcInsn("net.bytebuddy.agent.builder.LambdaFactory"); |
|
|
|
|
methodVisitor.visitLdcInsn("com.fr.third.net.bytebuddy.agent.builder.LambdaFactory"); |
|
|
|
|
methodVisitor.visitMethodInsn(Opcodes.INVOKEVIRTUAL, "java/lang/ClassLoader", "loadClass", "(Ljava/lang/String;)Ljava/lang/Class;", false); |
|
|
|
|
methodVisitor.visitLdcInsn("make"); |
|
|
|
|
methodVisitor.visitIntInsn(Opcodes.BIPUSH, 9); |
|
|
|
@ -8244,7 +8244,7 @@ public interface AgentBuilder {
|
|
|
|
|
/** |
|
|
|
|
* The name of the Byte Buddy {@code net.bytebuddy.agent.Installer} class. |
|
|
|
|
*/ |
|
|
|
|
private static final String INSTALLER_TYPE = "net.bytebuddy.agent.Installer"; |
|
|
|
|
private static final String INSTALLER_TYPE = "com.fr.third.net.bytebuddy.agent.Installer"; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* The name of the {@code net.bytebuddy.agent.Installer} getter for reading an installed {@link Instrumentation}. |
|
|
|
@ -8421,7 +8421,7 @@ public interface AgentBuilder {
|
|
|
|
|
InstallationListener.NoOp.INSTANCE, |
|
|
|
|
new RawMatcher.Disjunction( |
|
|
|
|
new RawMatcher.ForElementMatchers(ElementMatchers.any(), ElementMatchers.isBootstrapClassLoader().or(ElementMatchers.isExtensionClassLoader())), |
|
|
|
|
new RawMatcher.ForElementMatchers(ElementMatchers.nameStartsWith("net.bytebuddy.").or(ElementMatchers.nameStartsWith("sun.reflect.")).<TypeDescription>or(ElementMatchers.isSynthetic()))), |
|
|
|
|
new RawMatcher.ForElementMatchers(ElementMatchers.nameStartsWith("com.fr.third.net.bytebuddy.").or(ElementMatchers.nameStartsWith("sun.reflect.")).<TypeDescription>or(ElementMatchers.isSynthetic()))), |
|
|
|
|
Transformation.Ignored.INSTANCE); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|