An unintended interaction

Remi Forax forax at univ-mlv.fr
Wed Oct 30 00:50:17 PDT 2013


yes, main is an entry point, so it works and I am not able to see why it 
should not work.

Rémi


On 10/30/2013 08:33 AM, Andrey Breslav wrote:
> 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 
> <mailto: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 
>> <mailto: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 
>> <mailto:kevinb at google.com>
>



More information about the lambda-spec-observers mailing list