I am writing an annotation processor and I need to instantiate a class being processed.
I am extracting some documentation based on the class and its annotations, and I'd like to run a method from this class and output the result in the generated documentation.
Unfortunately, when I try to instantiate it I have a ClassNotFoundException
which seems logical to me as the processing happens before the compilation round.
I am currently writting an xml file that holds the documentation, maybe there is an annotation post-processor or something similar?
Do you have any idea of workaround?