When @SupportedSourceVersion is not used, if user overrides the init method and does not assign to processingEnv, a null pointer exception results when processor is run. The error message is kind of minimal
error: Exception thrown while constructing Processor object: java.lang.NullPointerExceptioN
and give little indication of what's wrong. Maybe more of the stack track may help(?).
error: Exception thrown while constructing Processor object: java.lang.NullPointerExceptioN
and give little indication of what's wrong. Maybe more of the stack track may help(?).
- relates to
-
JDK-6401798 Add -Xlint=developer option to help debug annotation processing issues
- Closed