Method references in annotations?

Dan Smith daniel.smith at oracle.com
Mon Aug 8 12:15:11 PDT 2011


For method references:
http://cr.openjdk.java.net/~briangoetz/lambda/lambda-state-3.html

For MethodHandles (both varieties):
http://jcp.org/aboutJava/communityprocess/final/jsr292/index.html

Hope that helps.

—Dan

On Aug 6, 2011, at 10:42 AM, Jason Schroeder wrote:

> Are there available references to these four overlapping concerns?  I would
> like to try and put them together.
> 
> I perceive that a cohesive story here may inform (or forestall) concerns for
> function types by, at least, putting like things together and arguing from
> that standpoint.
> 
> | This has been raised before, and the underlying problem is that
> there are a number of different things that look superficially
> similar, but that are fundamentally different:
> |
> | - This request: reflection method "literals" (analogous to class literals)
> | - MethodHandle class file constants
> | - MethodHandles in general (a superset of MethodHandle class file constants)
> | - Method references
> |
> | Each of these has been designed/proposed with a different purpose in
> mind, but ultimately, there's a lot of overlap.  Eventually it would
> be nice to have a cohesive story about all of them…
> |
> | —Dan
> 



More information about the lambda-dev mailing list