|
Lines 57-73
Link Here
|
| 57 |
import org.eclipse.jdt.core.util.IInnerClassesAttributeEntry; |
57 |
import org.eclipse.jdt.core.util.IInnerClassesAttributeEntry; |
| 58 |
import org.eclipse.jdt.core.util.IMethodInfo; |
58 |
import org.eclipse.jdt.core.util.IMethodInfo; |
| 59 |
import org.eclipse.jdt.core.util.ISignatureAttribute; |
59 |
import org.eclipse.jdt.core.util.ISignatureAttribute; |
|
|
60 |
import org.eclipse.jdt.internal.compiler.codegen.Opcodes; |
| 60 |
import org.eclipse.pde.api.tools.generator.util.Util; |
61 |
import org.eclipse.pde.api.tools.generator.util.Util; |
| 61 |
import org.eclipse.pde.api.tools.internal.IApiXmlConstants; |
62 |
import org.eclipse.pde.api.tools.internal.IApiXmlConstants; |
| 62 |
import org.eclipse.pde.api.tools.internal.provisional.ProfileModifiers; |
63 |
import org.eclipse.pde.api.tools.internal.provisional.ProfileModifiers; |
| 63 |
import org.objectweb.asm.AnnotationVisitor; |
64 |
import org.objectweb.asm.AnnotationVisitor; |
| 64 |
import org.objectweb.asm.Attribute; |
|
|
| 65 |
import org.objectweb.asm.ClassReader; |
65 |
import org.objectweb.asm.ClassReader; |
| 66 |
import org.objectweb.asm.ClassVisitor; |
66 |
import org.objectweb.asm.ClassVisitor; |
| 67 |
import org.objectweb.asm.ClassWriter; |
67 |
import org.objectweb.asm.ClassWriter; |
| 68 |
import org.objectweb.asm.FieldVisitor; |
68 |
import org.objectweb.asm.FieldVisitor; |
| 69 |
import org.objectweb.asm.MethodVisitor; |
69 |
import org.objectweb.asm.MethodVisitor; |
| 70 |
import org.objectweb.asm.Opcodes; |
|
|
| 71 |
import org.w3c.dom.DOMException; |
70 |
import org.w3c.dom.DOMException; |
| 72 |
import org.w3c.dom.Document; |
71 |
import org.w3c.dom.Document; |
| 73 |
import org.w3c.dom.Element; |
72 |
import org.w3c.dom.Element; |
|
Lines 1174-1180
Link Here
|
| 1174 |
* @param stubtype |
1173 |
* @param stubtype |
| 1175 |
*/ |
1174 |
*/ |
| 1176 |
public StubClassAdapter(Type stubtype) { |
1175 |
public StubClassAdapter(Type stubtype) { |
| 1177 |
super(Opcodes.ASM5, new ClassWriter(0)); |
1176 |
super(Opcodes.ASM6, new ClassWriter(0)); |
| 1178 |
this.type = stubtype; |
1177 |
this.type = stubtype; |
| 1179 |
} |
1178 |
} |
| 1180 |
|
1179 |
|
|
Lines 1270-1276
Link Here
|
| 1270 |
return null; |
1269 |
return null; |
| 1271 |
} |
1270 |
} |
| 1272 |
final StubMethod method = this.stub.addMethod(methodName, desc); |
1271 |
final StubMethod method = this.stub.addMethod(methodName, desc); |
| 1273 |
return new MethodVisitor(Opcodes.ASM5, super.visitMethod(access, methodName, desc, signature, exceptions)) { |
1272 |
return new MethodVisitor(Opcodes.ASM6, super.visitMethod(access, methodName, desc, signature, exceptions)) { |
| 1274 |
@Override |
1273 |
@Override |
| 1275 |
public AnnotationVisitor visitAnnotation(String sig, boolean visible) { |
1274 |
public AnnotationVisitor visitAnnotation(String sig, boolean visible) { |
| 1276 |
if (visible && "Ljava/lang/invoke/MethodHandle$PolymorphicSignature;".equals(sig)) { //$NON-NLS-1$ |
1275 |
if (visible && "Ljava/lang/invoke/MethodHandle$PolymorphicSignature;".equals(sig)) { //$NON-NLS-1$ |