Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #33331
| Path | csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!news.albasani.net!.POSTED!not-for-mail |
|---|---|
| From | Jan Burse <janburse@fastmail.fm> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: method parameter binding |
| Date | Thu, 10 Dec 2015 17:21:24 +0100 |
| Organization | albasani.net |
| Lines | 27 |
| Message-ID | <n4c8q6$lev$1@news.albasani.net> (permalink) |
| References | <6bfa4a78-934e-4f90-8e5f-a2f56e529842@googlegroups.com> <b3b24809-56ed-4aa5-ac5f-f5893571d451@googlegroups.com> <n4c8dt$kki$1@news.albasani.net> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | news.albasani.net HVD49hIqtTUJa3+K+3BOYjom1do56qvtRyVw7fXs2k7XDDZY/ILiSZx1dz9NAnvXsYz/BWuUycbhXJpYM1/1jz4h8uf2N5ogVv+dfCw4SxpvB9FJVCXENEseDWWWX2cg |
| NNTP-Posting-Date | Thu, 10 Dec 2015 16:21:26 +0000 (UTC) |
| Injection-Info | news.albasani.net; logging-data="nrggiEPj7kaE0mPaD5oLAcIiyo+7maMWtxtK37d/JJY//We4RyD8QFPcBkhPa3QrDuL9u9PFSjAJ2qfDfbwCOaVhZ3GOCEQc/g89pSIHHEGjZhNZSwycAQ32vPd1ectS"; mail-complaints-to="abuse@albasani.net" |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0 SeaMonkey/2.39 |
| In-Reply-To | <n4c8dt$kki$1@news.albasani.net> |
| Cancel-Lock | sha1:Hl+N62mXZZUntdjh0EbTumAEaD8= |
| Xref | csiph.com comp.lang.java.programmer:33331 |
Show key headers only | View raw
Jan Burse schrieb:
> Need more code...
Works fine, as expected:
Main Method:
public static void main(String[] args) {
Test test = new Test();
System.err.println("test.get(1L, 2L)="+test.get(1L, 2L));
System.err.println("test.get(1.0, 2.0)="+test.get(1.0, 2.0));
System.err.println("test.get(1, 2)="+test.get(1, 2));
}
Results:
test.get(1L, 2L)=3
test.get(1.0, 2.0)=3.0
Exception in thread "main" java.lang.IllegalStateException: test
at protect.Test.get(Test.java:20)
at protect.Test.main(Test.java:27)
In the last case the signature is Integer,Integer and
it only finds the throwing get method, since Number is
super class of Integer.
Bye
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
method parameter binding Philipp Kraus <philipp.kraus.flashpixx@gmail.com> - 2015-12-10 07:44 -0800
Re: method parameter binding Eric Douglas <e.d.programmer@gmail.com> - 2015-12-10 07:53 -0800
Re: method parameter binding Jan Burse <janburse@fastmail.fm> - 2015-12-10 17:14 +0100
Re: method parameter binding Eric Douglas <e.d.programmer@gmail.com> - 2015-12-10 08:20 -0800
Re: method parameter binding Jan Burse <janburse@fastmail.fm> - 2015-12-10 17:23 +0100
Re: method parameter binding Jan Burse <janburse@fastmail.fm> - 2015-12-10 17:23 +0100
Re: method parameter binding Jan Burse <janburse@fastmail.fm> - 2015-12-10 17:21 +0100
Re: method parameter binding Jan Burse <janburse@fastmail.fm> - 2015-12-10 17:27 +0100
Re: method parameter binding Jan Burse <janburse@fastmail.fm> - 2015-12-10 17:28 +0100
Re: method parameter binding Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-12-10 11:35 -0500
Re: method parameter binding Martin Gregorie <martin@address-in-sig.invalid> - 2015-12-10 18:00 +0000
Re: method parameter binding Eric Douglas <e.d.programmer@gmail.com> - 2015-12-10 08:41 -0800
Re: method parameter binding j4n bur53 <janburse@fastmail.fm> - 2015-12-10 19:29 +0100
Re: method parameter binding Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-12-10 11:33 -0500
Re: method parameter binding Jan Burse <janburse@fastmail.fm> - 2015-12-10 22:34 +0100
Re: method parameter binding Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-12-10 17:09 -0500
Re: method parameter binding j4n bur53 <janburse@fastmail.fm> - 2015-12-11 09:27 +0100
csiph-web