Skip to content Skip to sidebar Skip to footer

Field.getgenerictype() Returns Instance Of Java.lang.class Instead Of Type

I'm having issues with proguard and some reflection stuff. Myclass.java package not.obfuscated class MyClass { public List childs; } InnerClass.java package

Solution 1:

By default Proguard removes some of the type information: How do you stop Proguard from removing type parameters?

Adding the following line should fix the issue:

-keepattributes Signature

May be the whole magic line would work, i.e.:

-keepattributes Exceptions,InnerClasses,Signature,Deprecated,SourceFile,LineNumberTable,*Annotation*,EnclosingMethod 

Post a Comment for "Field.getgenerictype() Returns Instance Of Java.lang.class Instead Of Type"