Annotating lambda expressions

Ron Pressler ron at
Fri Jul 10 08:43:11 UTC 2015

(Related to

It is useful to add an annotation to a lambda expression -- as in
foo(@Special () -> { ...}) -- which will be applied to the static method
implementing the lambda (not to the interface the lambda implements). This
would allow instrumentation tools operating on method implementations to
handle lambdas. So far, AFAICT, this is not possible (or am I wrong?).


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the compiler-dev mailing list