2

I´m interested in the result of the processed annotations to get a in depth understanding of a framework (RestEasy 3.0.7-FINAL in this case).

The Java documentation says:

the annotation processing happens in a sequence of rounds. On each round, a processor may be asked to process a subset of the annotations found on the source and class files produced by a prior round.

After all annotations are processed the Sources are compiled, so in my understanding i should see the result of the process if i decompile the generated .class files. But this results in the Javacode with the unprocessed annotations.

How can i get the result of the annotation processing process?

1 Answer 1

1

Annotations can be processed by an annotation processor, but (if they have @Retention(RUNTIME)) can also be queried at runtime using the reflection API. Therefore, you probably see no effect of annotation processing because there is no annotation processing. If there were, the annotation processor would emit java source code, typically in a separate source folder named ".apt_generated".

Sign up to request clarification or add additional context in comments.

2 Comments

Thank you. I posted a further question, based on your answer: stackoverflow.com/questions/30391308/…
What about SOURCE retention?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.