An unintended interaction

Kevin Bourrillion kevinb at google.com
Tue Oct 29 23:23:59 PDT 2013


I also feel this is harmless.


On Tue, Oct 29, 2013 at 5:00 PM, Brian Goetz <brian.goetz at oracle.com> wrote:

> If you have:
>
>   public interface Foo {
>     public static void main(String[] args) {
>       System.out.println("Foo!");
>     }
>   }
>
> you can say
>   java Foo
>
> and it will run.  Is that what we intended?  Should the java launcher
> detect this and not look for main() methods in interfaces?
>
>


-- 
Kevin Bourrillion | Java Librarian | Google, Inc. | kevinb at google.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/lambda-spec-experts/attachments/20131029/7873997b/attachment.html 


More information about the lambda-spec-experts mailing list