SAM interface/class figures [Re: Preparing for the 0.2 draft]

Alex Buckley Alex.Buckley at Sun.COM
Wed Feb 3 12:55:49 PST 2010


Neal Gafter wrote:
> On Wed, Feb 3, 2010 at 12:04 PM, Alex Buckley <Alex.Buckley at sun.com> wrote:
>> What is really interesting is how many of those 12597 anon.classes extend a
>> SAM class v. implement a SAM interface.
> 
> I don't think that is precise enough.  Those statistics are only
> interesting if restricted to anonymous inner classes that implement a
> SAM type (as you say), AND define a single method, AND have no fields,
> AND pass no constructor arguments, AND are not generic methods, etc.
> The rest of them wouldn't be candidates for lambda expressions anyway.
>  That's why I generated the statistics I did and also provided the
> code for others to do the same.

I don't disagree about the restrictions, but I prefer to ask simple 
questions up front and get more detail about the results if they look 
interesting.

What code are you talking about? There was nothing in your mail about 
OpenJDK 6 stats.

Alex


More information about the lambda-dev mailing list