Using default implementation in class is right?
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Thu Dec 15 05:42:02 PST 2011
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