Lambdas not integrated with annotations

Brian Goetz brian.goetz at oracle.com
Wed Jul 30 14:09:50 UTC 2014


> why has it not been made possible to supply lambdas as annotation parameters? Would it have required too many changes to the language spec? Not deemed worthwhile?

One significant impediment was: Annotation parameters are restricted to the set of values that can be represented in classifies as constants: integers, strings, classes, etc.  This would have required significant changes to the JVM spec. 


More information about the lambda-dev mailing list