Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #29959
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.swapon.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Knute Johnson <nospam@rabbitbrush.frazmtn.com> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: How does it know? |
| Date | Fri, 12 Sep 2014 16:18:12 -0700 |
| Organization | A noiseless patient Spider |
| Lines | 29 |
| Message-ID | <luvuvm$90e$1@dont-email.me> (permalink) |
| References | <luv2fd$j58$1@dont-email.me> <main-20140912181753@ram.dialup.fu-berlin.de> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=windows-1252; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Fri, 12 Sep 2014 23:18:14 +0000 (UTC) |
| Injection-Info | mx05.eternal-september.org; posting-host="9f88abf500e70723148465e543f647d1"; logging-data="9230"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19N/YiM9oat/Uyr3K9h4JD1" |
| User-Agent | Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1 |
| In-Reply-To | <main-20140912181753@ram.dialup.fu-berlin.de> |
| Cancel-Lock | sha1:G7boRZw68muy23wKWOoU9eRlwY4= |
| Xref | csiph.com comp.lang.java.programmer:29959 |
Show key headers only | View raw
On 9/12/2014 09:18, Stefan Ram wrote:
> Knute Johnson <nospam@rabbitbrush.frazmtn.com> writes:
>> Adding the .class files to a .jar and running it produces the same:
>
> To reproduce what you are doing, it might help, when you
> give /every/ command used in the sequence used in addition
> to the source code, if the problem should still persist.
>
>> The second question is, what type is test.main()?
>> I want to be able to put it into a Map.
>
> public final class Main
> { public static void main( final java.lang.String[] args )
> { final java.util.Map
> < java.util.function.Consumer< java.lang.String[] >,
> java.util.function.Consumer< java.lang.String[] >> map =
> new java.util.HashMap<>();
> map.put( Main::main, Main::main ); }}
>
What is Main::main, is it a Method? You can't call Main::main.invoke().
I'd like to figure out a way to store some sort of a reference to
Main.main() so that I could execute it.
Maybe I'm barking up a non-existent tree?
Thanks,
knute...
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How does it know? Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2014-09-12 08:11 -0700
Re: How does it know? Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2014-09-12 08:36 -0700
Re: How does it know? Steven Simpson <ss@domain.invalid> - 2014-09-12 17:36 +0100
Re: How does it know? Donkey Hottie <donkey@fredriksson.dy.fi> - 2014-09-12 21:40 +0300
Re: How does it know? Joerg Meier <joergmmeier@arcor.de> - 2014-09-13 11:57 +0200
Re: How does it know? Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2014-09-12 16:18 -0700
Re: How does it know? Mike Amling <mamling@chaff.us> - 2014-09-14 08:52 -0500
Re: How does it know? Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2014-09-14 07:48 -0700
Re: How does it know? Roedy Green <see_website@mindprod.com.invalid> - 2014-09-12 18:11 -0700
Re: How does it know? Joerg Meier <joergmmeier@arcor.de> - 2014-09-13 11:59 +0200
Re: How does it know? Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2014-09-14 07:51 -0700
Re: How does it know? Arne Vajhøj <arne@vajhoej.dk> - 2014-09-14 22:24 -0400
Re: How does it know? Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2014-09-14 07:50 -0700
Re: How does it know? Arne Vajhøj <arne@vajhoej.dk> - 2014-09-14 22:26 -0400
Re: How does it know? Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2014-09-17 14:52 -0700
Re: How does it know? Roedy Green <see_website@mindprod.com.invalid> - 2014-09-12 18:13 -0700
Re: How does it know? Mike Amling <mamling@chaff.us> - 2014-09-14 08:29 -0500
Re: How does it know? Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2014-09-14 07:53 -0700
Re: How does it know? Roedy Green <see_website@mindprod.com.invalid> - 2014-09-17 00:40 -0700
Re: How does it know? Joerg Meier <joergmmeier@arcor.de> - 2014-09-18 00:10 +0200
csiph-web