output dex generated is invalid
Attached is the input dex.
I think the problem is happening due to two things:-
1) we dont clear default annotations.(Bug 316397)
2) There is some problem with uniqueness of items in the
AnnotationDirectoryItems (constantpool.java)
/**
* HashSet of annotation_directory_items. They are unique, but we don't
care about their order.
*/
private HashSet<AnnotationDirectoryItem> annotationDirectoryItems = new
HashSet<AnnotationDirectoryItem>();
When I remove the uniqueness by returning always false from equals(...)
function in AnnotationDirectoryItem, it works
[AnnotationDirectoryItem.java]
@Override
public boolean equals(Object obj) {
return false;
}