Annotating lambda expressions
Ron Pressler
ron at paralleluniverse.co
Fri Jul 10 08:43:11 UTC 2015
(Related to
http://mail.openjdk.java.net/pipermail/compiler-dev/2015-January/009220.html
)
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?).
Opinions?
Ron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20150710/2eafedfe/attachment.html>
More information about the compiler-dev
mailing list