Java Custom Annotation And Dynamic Loading
I'm trying to develop ORM for database synchronisation and decided to give Java reflection a go. I have a library that defines Synchronised annotation like this @Retention(Retentio
Solution 1:
Get just annotation that you are interested in:
Annotation<Synchronised> annotation = entryClass.getAnnotation(Synchronised.class);
Update:
The problem is that DexFile.getClass() apparently returns a proxy. OP has found the anser and updated the question with a solution.
Post a Comment for "Java Custom Annotation And Dynamic Loading"