3

I am trying to implement AnnotationProcessor. I am following this tutorial.

I am able to debug the annotation processor, and the debugger goes to methods: init, getSupportedAnnotationTypes, getSupportedOptions ,getSupportedSourceVersion but it does not go to process method.

I was unable to find something useful on the internet. Could you please tell me why is this happening and how to fix it?

Thank you.

1
  • Share some code Commented Mar 28, 2017 at 21:45

1 Answer 1

8

I just found out that in order to run the process method. At least one element must be annotated with an annotation that was set in getSupportedAnnotationTypes.

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

1 Comment

I did the same, but still process method is not calling

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.