diamond operator and non-denotable types

Neal Gafter neal at gafter.com
Fri Apr 9 13:03:43 PDT 2010


On Fri, Apr 9, 2010 at 11:46 AM, Maurizio Cimadamore
<maurizio.cimadamore at oracle.com> wrote:
> Neal Gafter wrote:
>>
>> Maurizio-
>>
>> How are these cases handed with static factories?  Why should it be
>> handled
>> differently between static factories and constructors?  It seems that the
>> diamond operator should be capable of inferring any type arguments a
>> static
>> factory could infer. Is there any reason for the diamond operator to be
>> less
>> powerful?
>>
>
> The problem is with anonymous inner class creation

Then the solution should be with anonymous inner class creation as well.

Cheers,
Neal



More information about the coin-dev mailing list