k3
k3 copied to clipboard
@Aspect put on something else than a class crashes the annotation processor.
Putting an annotation (@Aspect or other) on the wrong content crashes the annotation processor. (typically with a ClassCastException) The resulting file is completly broken with many message that aren't user friendly.
It would be better to check that the annotation has been placed on the correct element before starting to process it and report a clear message.