An unintended interaction

Zakharov, Vladimir Vladimir.Zakharov at gs.com
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 http://www.gs.com/disclaimer/global_email 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 http://www.gs.com/disclaimer/email 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 openjdk.java.net [mailto:lambda-spec-experts-bounces at openjdk.java.net] On Behalf Of Kevin Bourrillion
Sent: Wednesday, October 30, 2013 2:24 AM
To: Brian Goetz
Cc: lambda-spec-experts at openjdk.java.net
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 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>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/lambda-spec-experts/attachments/20131030/5ddd5a25/attachment.html 


More information about the lambda-spec-experts mailing list