something wrong while visitAnnotationDefault
dalvik got 'some/type' element 'value' incomplete. especial there is an array
value. test code:
enum C {
X, Y
}
public @interface B {
String[] b() default { "1", "2" };
C[] c() default { C.X, C.Y };
}
here is my solution:
for Reader
I record all the Ldalvik/annotation/AnnotationDefault; Annotation visit to
AnnotationNodes, and play them when visiting Methods.
for Writer
I record all visitAnnotationDefault visit to AnnotationNodes, and play them in
the ClassWrite.visitEnd().
This works for me, here is my patch