Using default implementation in class is right?

bitter_fox bitterfoxc at gmail.com
Fri Dec 16 08:39:56 PST 2011


Thank you for the fix.

bitter_fox

2011/12/15 Maurizio Cimadamore <maurizio.cimadamore at oracle.com>

> This is a bug.
> Thanks for the report.
>
> Maurizio
>
>
> On 15/12/11 13:33, bitter_fox wrote:
>
>> Using default implementation in class is right?
>>
>> I can compile this program.
>> (Revision of javac is 1244)
>>
>> public class Main
>> {
>>     public static void main(String[] args) default
>>     {
>>         new Main().invoke();
>>     }
>>
>>     public void invoke() default
>>     {
>>         System.out.println("Hello World");
>>     }
>> }
>>
>> Is this right?
>> I have thought this is wrong...
>>
>> Thanks.
>> bitter_fox
>>
>>
>


More information about the lambda-dev mailing list