Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #11793
| From | Paka Small <paka-en@tumia.org> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Instance java.lang.Object.getClass() of Class Java Method on OO Tumia |
| Date | 2012-02-06 12:00 -0800 |
| Organization | http://groups.google.com |
| Message-ID | <a8d0ca47-4744-44d3-9f76-71ad2d53f484@y10g2000vbn.googlegroups.com> (permalink) |
| References | (3 earlier) <32802338.1556.1328425716958.JavaMail.geo-discussion-forums@prhu31> <0e8b5554-d19e-4a0b-9840-409d893b6ac7@1g2000yqv.googlegroups.com> <8457013.1958.1328471129375.JavaMail.geo-discussion-forums@prmu37> <25138740-03d5-4668-a243-6994eb43dbd5@1g2000yqv.googlegroups.com> <7144029.385.1328521805784.JavaMail.geo-discussion-forums@prfs3> |
On 6 feb, 10:50, Lew <lewbl...@gmail.com> wrote:
> Paka Small wrote:
> > You write "> Statement A, as you call it, was an objection to your
> > blatant misrepresentation
> >> that methods are classes, and a fair one.". Nowhere and never I have stated
> >> that methods are classes. Please have the decency not to put words in my mouth!
>
> You put these words in your own mouth: "My statement (a method is also a class
> which has method instances) is proven by the Oracle Java link above and backed
> up with 20 years of professional software development experience."
>
> I did not lack decency. I was merely stating a fact. That was your statement,
> and it is not true.
>
> You also said: "Please can you pinpoint where in this document is written that
> a Java method is not an instance of the class Method." Not true.
>
> You also excoriated Daniel's post, saying, "you put out with such vigour your
> statement ('Those aren't instances, they are called methods.') that is totally
> incorrect." Not true.
>
> You put these statements forward. I copied and pasted them into this post. I
> did not make them up. You said them.
>
> How strange that you now deny saying them. Still, they're a matter of public
> record so there's no denying responsibility.
>
> --
> Lew
Hi,
Example code proving beyond any doubt that a method is an instance of
the class java.lang.reflect.Method in Java:
public final void setValue(BaseObject baseObject, Object value) {
java.lang.reflect.Method setMethod = null;
try {
setMethod =
baseObjectClass.getJavaClass().getMethod(this.getSetMethodName(), new
Class[]{this.type});
} catch (NoSuchMethodException ex) {
Logger.getLogger(BaseObjectAttribute.class.getName()).log(Level.SEVERE,
null, ex);
} catch (SecurityException ex) {
Logger.getLogger(BaseObjectAttribute.class.getName()).log(Level.SEVERE,
null, ex);
}
try {
setMethod.invoke(baseObject, new Object[]{value});
} catch (IllegalAccessException ex) {
Logger.getLogger(BaseObjectAttribute.class.getName()).log(Level.SEVERE,
null, ex);
} catch (IllegalArgumentException ex) {
Logger.getLogger(BaseObjectAttribute.class.getName()).log(Level.SEVERE,
null, ex);
} catch (InvocationTargetException ex) {
Logger.getLogger(BaseObjectAttribute.class.getName()).log(Level.SEVERE,
null, ex);
}
}
Kind regards, Paka
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Instance java.lang.Object.getClass() of Class Java Method on OO Tumia Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-01-25 11:23 -0800
Re: Instance java.lang.Object.getClass() of Class Java Method on OO Tumia Jeff Higgins <jeff@invalid.invalid> - 2012-01-25 15:07 -0500
Re: Instance java.lang.Object.getClass() of Class Java Method on OO Tumia Paka Small <paka-en@tumia.org> - 2012-02-04 08:43 -0800
Re: Instance java.lang.Object.getClass() of Class Java Method on OO Tumia Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-02-07 08:22 -0500
Re: Instance java.lang.Object.getClass() of Class Java Method on OO Tumia Paka Small <paka-en@tumia.org> - 2012-02-04 08:48 -0800
Re: Instance java.lang.Object.getClass() of Class Java Method on OO Tumia Lew <lewbloch@gmail.com> - 2012-02-04 23:08 -0800
Re: Instance java.lang.Object.getClass() of Class Java Method on OO Tumia Paka Small <paka-en@tumia.org> - 2012-02-05 03:13 -0800
Re: Instance java.lang.Object.getClass() of Class Java Method on OO Tumia Lew <lewbloch@gmail.com> - 2012-02-05 11:45 -0800
Re: Instance java.lang.Object.getClass() of Class Java Method on OO Tumia Paka Small <paka-en@tumia.org> - 2012-02-05 14:44 -0800
Re: Instance java.lang.Object.getClass() of Class Java Method on OO Tumia Lew <lewbloch@gmail.com> - 2012-02-06 01:50 -0800
Re: Instance java.lang.Object.getClass() of Class Java Method on OO Tumia Paka Small <paka-en@tumia.org> - 2012-02-06 12:00 -0800
Re: Instance java.lang.Object.getClass() of Class Java Method on OO Tumia Lew <lewbloch@gmail.com> - 2012-02-06 17:13 -0800
Re: Instance java.lang.Object.getClass() of Class Java Method on OO Tumia Paka Small <paka-en@tumia.org> - 2012-02-06 22:20 -0800
Re: Instance java.lang.Object.getClass() of Class Java Method on OO Tumia Mayeul <mayeul.marguet@free.fr> - 2012-02-07 14:03 +0100
Re: Instance java.lang.Object.getClass() of Class Java Method on OO Tumia Lew <lewbloch@gmail.com> - 2012-02-07 10:54 -0800
Re: Instance java.lang.Object.getClass() of Class Java Method on OO Tumia Paka Small <paka-en@tumia.org> - 2012-02-07 12:38 -0800
Re: Instance java.lang.Object.getClass() of Class Java Method on OO Tumia Lew <lewbloch@gmail.com> - 2012-02-07 16:42 -0800
Re: Instance java.lang.Object.getClass() of Class Java Method on OO Tumia Patricia Shanahan <pats@acm.org> - 2012-02-07 12:53 -0800
Re: Instance java.lang.Object.getClass() of Class Java Method on OO Tumia Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-02-07 13:32 -0800
Re: Instance java.lang.Object.getClass() of Class Java Method on OO Tumia Lew <lewbloch@gmail.com> - 2012-02-05 11:51 -0800
csiph-web