An unintended interaction

Andrey Breslav andrey.breslav at jetbrains.com
Wed Oct 30 00:33:09 PDT 2013


Looks harmless to me

--
Andrey Breslav
http://kotlin.jetbrains.org
http://jetbrains.com
Develop with pleasure!



On Oct 30, 2013, at 10:23 , Kevin Bourrillion <kevinb at google.com> wrote:

> 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



More information about the lambda-spec-observers mailing list