An unintended interaction

Zakharov, Vladimir Vladimir.Zakharov at
Wed Oct 30 05:53:58 PDT 2013

I too feel it is harmless. Not even mostly harmless, just harmless. I feel it is not more unexpected than having main() running in an abstract class…

The Goldman Sachs Group, Inc. All rights reserved.
See for important risk disclosures, conflicts of interest and other terms and conditions relating to this e-mail and your reliance on information contained in it.  This message may contain confidential or privileged information.  If you are not the intended recipient, please advise us immediately and delete this message.  See for further information on confidentiality and the risks of non-secure electronic communication.  If you cannot access these links, please notify us by reply message and we will send the contents to you.

From: lambda-spec-experts-bounces at [mailto:lambda-spec-experts-bounces at] On Behalf Of Kevin Bourrillion
Sent: Wednesday, October 30, 2013 2:24 AM
To: Brian Goetz
Cc: lambda-spec-experts at
Subject: Re: An unintended interaction

I also feel this is harmless.

On Tue, Oct 29, 2013 at 5:00 PM, Brian Goetz <brian.goetz at<mailto:brian.goetz at>> wrote:
If you have:

  public interface Foo {
    public static void main(String[] args) {

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<mailto:kevinb at>
-------------- next part --------------
An HTML attachment was scrubbed...

More information about the lambda-spec-experts mailing list