Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

processing of annotations inside a method body

I am processing java annotations using the Pluggable Annotation Processing API. Is it somehow possible to also process annotations used inside a method body?

thanks for help. Peter

like image 818
wrm Avatar asked Oct 18 '11 15:10

wrm


1 Answers

I think, i found the solution. As i thought, it is not possible with the current javac. local annotations are just simple comments and wont be processed by the pluggable annotation processing api. BUT there are interesting efforts in JSR308, handling type annotations that support marvelous things as parameters on type-variables, local variables, annotated-type-checking and casting... and as it looks, it will be incorporated into openJDK 8. nice

like image 80
wrm Avatar answered Oct 17 '22 06:10

wrm