atteo / classindex

Index classes, do not scan them!
Apache License 2.0
263 stars 42 forks source link

ClassIndex.getAnnotated returns classes that are no longer annotated #54

Open DreierF opened 5 years ago

DreierF commented 5 years ago

Hi there, When indexing classes with @IndexAnnotated and removing the annotation again incremental compilation does not seem to update the index correctly so that the class is removed again from the index. I know there were similar issues for classes that were removed causing the indices to become outdated. Doing a rebuild all fixes the issue.

My proposed solution would be to check for the classes returned by getAnnotated whether the annotation is still present.

Setup: IntelliJ 2019.2 using the built in compiler

legaciespanda commented 1 year ago

I am experiencing the same issue