|
![](https://seccdn.libravatar.org/avatar/80ea5bd5469f2dbf72ea4419606e47b13e62f39e50641222f89e4aa9a5cb21b5?s=16&d=retro) |
b690c49 |
From aaf9dad09a9a26c5de3c2910d910b24a258b0b1d Mon Sep 17 00:00:00 2001
|
|
![](https://seccdn.libravatar.org/avatar/80ea5bd5469f2dbf72ea4419606e47b13e62f39e50641222f89e4aa9a5cb21b5?s=16&d=retro) |
b690c49 |
From: Michael Simacek <msimacek@redhat.com>
|
|
![](https://seccdn.libravatar.org/avatar/80ea5bd5469f2dbf72ea4419606e47b13e62f39e50641222f89e4aa9a5cb21b5?s=16&d=retro) |
b690c49 |
Date: Tue, 1 Dec 2015 12:36:21 +0100
|
|
![](https://seccdn.libravatar.org/avatar/80ea5bd5469f2dbf72ea4419606e47b13e62f39e50641222f89e4aa9a5cb21b5?s=16&d=retro) |
b690c49 |
Subject: [PATCH 1/3] Unshade ASM
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
---
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
9695710 |
.../org/apache/xbean/finder/AbstractFinder.java | 31 ++++++++--------
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
.../org/apache/xbean/finder/AnnotationFinder.java | 43 +++++++++++-----------
|
|
![](https://seccdn.libravatar.org/avatar/80ea5bd5469f2dbf72ea4419606e47b13e62f39e50641222f89e4aa9a5cb21b5?s=16&d=retro) |
b690c49 |
.../xbean/recipe/XbeanAsmParameterNameLoader.java | 16 ++++----
|
|
![](https://seccdn.libravatar.org/avatar/80ea5bd5469f2dbf72ea4419606e47b13e62f39e50641222f89e4aa9a5cb21b5?s=16&d=retro) |
b690c49 |
3 files changed, 46 insertions(+), 44 deletions(-)
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
diff --git a/xbean-finder/src/main/java/org/apache/xbean/finder/AbstractFinder.java b/xbean-finder/src/main/java/org/apache/xbean/finder/AbstractFinder.java
|
|
![](https://seccdn.libravatar.org/avatar/80ea5bd5469f2dbf72ea4419606e47b13e62f39e50641222f89e4aa9a5cb21b5?s=16&d=retro) |
b690c49 |
index 6bf1f3c..fab8b88 100644
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
--- a/xbean-finder/src/main/java/org/apache/xbean/finder/AbstractFinder.java
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+++ b/xbean-finder/src/main/java/org/apache/xbean/finder/AbstractFinder.java
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
@@ -34,10 +34,10 @@ import java.util.HashMap;
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
import java.util.List;
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
import java.util.Map;
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
-import org.apache.xbean.asm5.original.commons.EmptyVisitor;
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
import org.apache.xbean.finder.util.SingleLinkedList;
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
import org.objectweb.asm.AnnotationVisitor;
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
import org.objectweb.asm.ClassReader;
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+import org.objectweb.asm.ClassVisitor;
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
import org.objectweb.asm.FieldVisitor;
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
import org.objectweb.asm.MethodVisitor;
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
import org.objectweb.asm.Opcodes;
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
@@ -908,15 +908,17 @@ public abstract class AbstractFinder implements IAnnotationFinder {
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
}
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
}
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
- public class InfoBuildingVisitor extends EmptyVisitor {
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+ public class InfoBuildingVisitor extends ClassVisitor {
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
private Info info;
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
private String path;
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
public InfoBuildingVisitor(String path) {
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+ super(Opcodes.ASM5);
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
this.path = path;
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
}
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
public InfoBuildingVisitor(Info info) {
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+ super(Opcodes.ASM5);
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
this.info = info;
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
}
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
@@ -949,7 +951,7 @@ public abstract class AbstractFinder implements IAnnotationFinder {
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
AnnotationInfo annotationInfo = new AnnotationInfo(desc);
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
info.getAnnotations().add(annotationInfo);
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
getAnnotationInfos(annotationInfo.getName()).add(info);
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
- return new InfoBuildingVisitor(annotationInfo).annotationVisitor();
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+ return null;
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
}
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
@Override
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
9695710 |
@@ -957,24 +959,23 @@ public abstract class AbstractFinder implements IAnnotationFinder {
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
ClassInfo classInfo = ((ClassInfo) info);
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
FieldInfo fieldInfo = new FieldInfo(classInfo, name, desc);
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
classInfo.getFields().add(fieldInfo);
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
- return new InfoBuildingVisitor(fieldInfo).fieldVisitor();
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+ return null;
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
}
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
@Override
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
9695710 |
public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
ClassInfo classInfo = ((ClassInfo) info);
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
9695710 |
- MethodInfo methodInfo = new MethodInfo(classInfo, name, desc);
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
9695710 |
+ final MethodInfo methodInfo = new MethodInfo(classInfo, name, desc);
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
classInfo.getMethods().add(methodInfo);
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
- return new InfoBuildingVisitor(methodInfo).methodVisitor();
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
- }
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
-
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
- @Override
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
- public AnnotationVisitor visitMethodParameterAnnotation(int param, String desc, boolean visible) {
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
- MethodInfo methodInfo = ((MethodInfo) info);
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
- List<AnnotationInfo> annotationInfos = methodInfo.getParameterAnnotations(param);
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
- AnnotationInfo annotationInfo = new AnnotationInfo(desc);
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
- annotationInfos.add(annotationInfo);
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
- return new InfoBuildingVisitor(annotationInfo).annotationVisitor();
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+ return new MethodVisitor(Opcodes.ASM5) {
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+ @Override
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+ public AnnotationVisitor visitParameterAnnotation(int param, String desc, boolean visible) {
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+ List<AnnotationInfo> annotationInfos = methodInfo.getParameterAnnotations(param);
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+ AnnotationInfo annotationInfo = new AnnotationInfo(desc);
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+ annotationInfos.add(annotationInfo);
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+ return null;
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+ }
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+ };
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
}
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
}
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
diff --git a/xbean-finder/src/main/java/org/apache/xbean/finder/AnnotationFinder.java b/xbean-finder/src/main/java/org/apache/xbean/finder/AnnotationFinder.java
|
|
![](https://seccdn.libravatar.org/avatar/80ea5bd5469f2dbf72ea4419606e47b13e62f39e50641222f89e4aa9a5cb21b5?s=16&d=retro) |
b690c49 |
index 7d68cd9..6454aa1 100644
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
--- a/xbean-finder/src/main/java/org/apache/xbean/finder/AnnotationFinder.java
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+++ b/xbean-finder/src/main/java/org/apache/xbean/finder/AnnotationFinder.java
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
@@ -20,13 +20,13 @@
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
package org.apache.xbean.finder;
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
-import org.apache.xbean.asm5.original.commons.EmptyVisitor;
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
import org.apache.xbean.finder.archive.Archive;
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
import org.apache.xbean.finder.util.Classes;
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
import org.apache.xbean.finder.util.SingleLinkedList;
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
import org.objectweb.asm.AnnotationVisitor;
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
import org.objectweb.asm.Attribute;
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
import org.objectweb.asm.ClassReader;
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+import org.objectweb.asm.ClassVisitor;
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
import org.objectweb.asm.FieldVisitor;
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
import org.objectweb.asm.MethodVisitor;
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
import org.objectweb.asm.Opcodes;
|
|
![](https://seccdn.libravatar.org/avatar/80ea5bd5469f2dbf72ea4419606e47b13e62f39e50641222f89e4aa9a5cb21b5?s=16&d=retro) |
b690c49 |
@@ -1790,13 +1790,15 @@ public class AnnotationFinder implements IAnnotationFinder {
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
initAnnotationInfos(annotationInfo.getName()).add(info);
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
}
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
- public class InfoBuildingVisitor extends EmptyVisitor {
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+ public class InfoBuildingVisitor extends ClassVisitor {
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
private Info info;
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
public InfoBuildingVisitor() {
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+ super(Opcodes.ASM5);
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
}
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
public InfoBuildingVisitor(Info info) {
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+ super(Opcodes.ASM5);
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
this.info = info;
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
}
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
|
|
![](https://seccdn.libravatar.org/avatar/80ea5bd5469f2dbf72ea4419606e47b13e62f39e50641222f89e4aa9a5cb21b5?s=16&d=retro) |
b690c49 |
@@ -1844,7 +1846,7 @@ public class AnnotationFinder implements IAnnotationFinder {
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
AnnotationInfo annotationInfo = new AnnotationInfo(desc);
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
info.getAnnotations().add(annotationInfo);
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
index(annotationInfo, info);
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
- return new InfoBuildingVisitor(annotationInfo).annotationVisitor();
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+ return null;
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
}
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
@Override
|
|
![](https://seccdn.libravatar.org/avatar/80ea5bd5469f2dbf72ea4419606e47b13e62f39e50641222f89e4aa9a5cb21b5?s=16&d=retro) |
b690c49 |
@@ -1852,32 +1854,31 @@ public class AnnotationFinder implements IAnnotationFinder {
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
ClassInfo classInfo = ((ClassInfo) info);
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
FieldInfo fieldInfo = new FieldInfo(classInfo, name, desc);
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
classInfo.getFields().add(fieldInfo);
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
- return new InfoBuildingVisitor(fieldInfo).fieldVisitor();
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+ return null;
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
}
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
@Override
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
ClassInfo classInfo = ((ClassInfo) info);
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
- MethodInfo methodInfo = new MethodInfo(classInfo, name, desc);
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+ final MethodInfo methodInfo = new MethodInfo(classInfo, name, desc);
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
classInfo.getMethods().add(methodInfo);
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
- return new InfoBuildingVisitor(methodInfo).methodVisitor();
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+ return new MethodVisitor(Opcodes.ASM5) {
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+ @Override
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+ public AnnotationVisitor visitParameterAnnotation(int param, String desc, boolean visible) {
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+ List<AnnotationInfo> annotationInfos = methodInfo.getParameterAnnotations(param);
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+ AnnotationInfo annotationInfo = new AnnotationInfo(desc);
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+ annotationInfos.add(annotationInfo);
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+ ParameterInfo parameterInfo = new ParameterInfo(methodInfo, param);
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+ methodInfo.getParameters().add(parameterInfo);
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+ index(annotationInfo, parameterInfo);
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+ return null;
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+ }
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+ };
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
}
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
-
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
- @Override
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
- public AnnotationVisitor visitMethodParameterAnnotation(int param, String desc, boolean visible) {
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
- MethodInfo methodInfo = ((MethodInfo) info);
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
- List<AnnotationInfo> annotationInfos = methodInfo.getParameterAnnotations(param);
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
- AnnotationInfo annotationInfo = new AnnotationInfo(desc);
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
- annotationInfos.add(annotationInfo);
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
-
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
- ParameterInfo parameterInfo = new ParameterInfo(methodInfo, param);
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
- methodInfo.getParameters().add(parameterInfo);
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
- index(annotationInfo, parameterInfo);
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
-
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
- return new InfoBuildingVisitor(annotationInfo).annotationVisitor();
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
- }
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
}
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
public static class GenericAwareInfoBuildingVisitor extends SignatureVisitor {
|
|
![](https://seccdn.libravatar.org/avatar/80ea5bd5469f2dbf72ea4419606e47b13e62f39e50641222f89e4aa9a5cb21b5?s=16&d=retro) |
b690c49 |
@@ -2042,4 +2043,4 @@ public class AnnotationFinder implements IAnnotationFinder {
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
}
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
-}
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
\ No newline at end of file
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+}
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
diff --git a/xbean-reflect/src/main/java/org/apache/xbean/recipe/XbeanAsmParameterNameLoader.java b/xbean-reflect/src/main/java/org/apache/xbean/recipe/XbeanAsmParameterNameLoader.java
|
|
![](https://seccdn.libravatar.org/avatar/80ea5bd5469f2dbf72ea4419606e47b13e62f39e50641222f89e4aa9a5cb21b5?s=16&d=retro) |
b690c49 |
index dea2f2a..dbbfb51 100644
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
--- a/xbean-reflect/src/main/java/org/apache/xbean/recipe/XbeanAsmParameterNameLoader.java
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+++ b/xbean-reflect/src/main/java/org/apache/xbean/recipe/XbeanAsmParameterNameLoader.java
|
|
![](https://seccdn.libravatar.org/avatar/80ea5bd5469f2dbf72ea4419606e47b13e62f39e50641222f89e4aa9a5cb21b5?s=16&d=retro) |
b690c49 |
@@ -17,13 +17,6 @@
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
*/
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
package org.apache.xbean.recipe;
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
-import org.apache.xbean.asm5.ClassReader;
|
|
![](https://seccdn.libravatar.org/avatar/80ea5bd5469f2dbf72ea4419606e47b13e62f39e50641222f89e4aa9a5cb21b5?s=16&d=retro) |
b690c49 |
-import org.apache.xbean.asm5.ClassVisitor;
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
-import org.apache.xbean.asm5.Label;
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
-import org.apache.xbean.asm5.MethodVisitor;
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
-import org.apache.xbean.asm5.Opcodes;
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
-import org.apache.xbean.asm5.Type;
|
|
![](https://seccdn.libravatar.org/avatar/80ea5bd5469f2dbf72ea4419606e47b13e62f39e50641222f89e4aa9a5cb21b5?s=16&d=retro) |
b690c49 |
-
|
|
![](https://seccdn.libravatar.org/avatar/80ea5bd5469f2dbf72ea4419606e47b13e62f39e50641222f89e4aa9a5cb21b5?s=16&d=retro) |
b690c49 |
import java.io.IOException;
|
|
![](https://seccdn.libravatar.org/avatar/80ea5bd5469f2dbf72ea4419606e47b13e62f39e50641222f89e4aa9a5cb21b5?s=16&d=retro) |
b690c49 |
import java.io.InputStream;
|
|
![](https://seccdn.libravatar.org/avatar/80ea5bd5469f2dbf72ea4419606e47b13e62f39e50641222f89e4aa9a5cb21b5?s=16&d=retro) |
b690c49 |
import java.lang.reflect.Constructor;
|
|
![](https://seccdn.libravatar.org/avatar/80ea5bd5469f2dbf72ea4419606e47b13e62f39e50641222f89e4aa9a5cb21b5?s=16&d=retro) |
b690c49 |
@@ -37,6 +30,13 @@ import java.util.List;
|
|
![](https://seccdn.libravatar.org/avatar/80ea5bd5469f2dbf72ea4419606e47b13e62f39e50641222f89e4aa9a5cb21b5?s=16&d=retro) |
b690c49 |
import java.util.Map;
|
|
![](https://seccdn.libravatar.org/avatar/80ea5bd5469f2dbf72ea4419606e47b13e62f39e50641222f89e4aa9a5cb21b5?s=16&d=retro) |
b690c49 |
import java.util.WeakHashMap;
|
|
![](https://seccdn.libravatar.org/avatar/80ea5bd5469f2dbf72ea4419606e47b13e62f39e50641222f89e4aa9a5cb21b5?s=16&d=retro) |
b690c49 |
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+import org.objectweb.asm.ClassReader;
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+import org.objectweb.asm.ClassVisitor;
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+import org.objectweb.asm.Label;
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+import org.objectweb.asm.MethodVisitor;
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+import org.objectweb.asm.Opcodes;
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+import org.objectweb.asm.Type;
|
|
![](https://seccdn.libravatar.org/avatar/80ea5bd5469f2dbf72ea4419606e47b13e62f39e50641222f89e4aa9a5cb21b5?s=16&d=retro) |
b690c49 |
+
|
|
![](https://seccdn.libravatar.org/avatar/80ea5bd5469f2dbf72ea4419606e47b13e62f39e50641222f89e4aa9a5cb21b5?s=16&d=retro) |
b690c49 |
/**
|
|
![](https://seccdn.libravatar.org/avatar/80ea5bd5469f2dbf72ea4419606e47b13e62f39e50641222f89e4aa9a5cb21b5?s=16&d=retro) |
b690c49 |
* Implementation of ParameterNameLoader that uses ASM to read the parameter names from the local variable table in the
|
|
![](https://seccdn.libravatar.org/avatar/80ea5bd5469f2dbf72ea4419606e47b13e62f39e50641222f89e4aa9a5cb21b5?s=16&d=retro) |
b690c49 |
* class byte code.
|
|
![](https://seccdn.libravatar.org/avatar/80ea5bd5469f2dbf72ea4419606e47b13e62f39e50641222f89e4aa9a5cb21b5?s=16&d=retro) |
b690c49 |
@@ -314,4 +314,4 @@ public class XbeanAsmParameterNameLoader implements ParameterNameLoader {
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
return null;
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
}
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
}
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
-}
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
\ No newline at end of file
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
+}
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
--
|
|
![](https://seccdn.libravatar.org/avatar/80ea5bd5469f2dbf72ea4419606e47b13e62f39e50641222f89e4aa9a5cb21b5?s=16&d=retro) |
b690c49 |
2.5.0
|
|
![](https://seccdn.libravatar.org/avatar/4a11670336054c6170cf84f382105c5185fc50a752919d2398b4281650c77e1e?s=16&d=retro) |
695e146 |
|