haco20292 / dex2jar

Automatically exported from code.google.com/p/dex2jar
0 stars 0 forks source link

visitEnum in AnnotationVisitor never called #75

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
AnnotationVisitor.visitEnum will never be called.

visit with value of type com.googlecode.dex2jar.Field is used instead, my 
workaround:

    public void visit(final String name, final Object value) {
        if (value instanceof Field) {
            // Bug in dex2jar 1.1? should be visitEnum...
            visitEnum(name, ((Field) value).getType(),
                    ((Field) value).getName());
            return;
        }
...

Original issue reported on code.google.com by andrePan...@gmail.com on 24 Sep 2011 at 11:41