Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #11798

Re: Poll: Is a Java Method an Instance of the Java Class java.lang.reflect.Method? Please reply with YES or NO.

From Joshua Cranmer <Pidgeot18@verizon.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: Poll: Is a Java Method an Instance of the Java Class java.lang.reflect.Method? Please reply with YES or NO.
Date 2012-02-06 23:54 -0600
Organization A noiseless patient Spider
Message-ID <jgqe9u$p0p$1@dont-email.me> (permalink)
References <7747b7da-e579-4514-bdff-a9eb8842cc51@l16g2000vbl.googlegroups.com>

Show all headers | View raw


On 2/5/2012 10:56 AM, Paka Small wrote:
> Hi,
>
> Poll: Is a Java Method an Instance of the Java Class
> java.lang.reflect.Method?

... Hell no, even if you stretch the definitions greatly.

The latter class is an object which uses internal APIs to the VM to 
collect metadata needed for methods; it is not an instance of any 
internal object itself. It may be the case that it is uniqued to some 
internal construct representing the executable handle for a method 
(IIRC, there are four or five these of though, at least in OpenJDK).

-- 
Beware of bugs in the above code; I have only proved it correct, not 
tried it. -- Donald E. Knuth

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Poll: Is a Java Method an Instance of the Java Class java.lang.reflect.Method? Please reply with YES or NO. Paka Small <paka-en@tumia.org> - 2012-02-05 08:56 -0800
  Re: Poll: Is a Java Method an Instance of the Java Class java.lang.reflect.Method? Please reply with YES or NO. Lew <lewbloch@gmail.com> - 2012-02-05 11:38 -0800
    Re: Poll: Is a Java Method an Instance of the Java Class java.lang.reflect.Method? Please reply with YES or NO. Paka Small <paka-en@tumia.org> - 2012-02-05 14:53 -0800
      Re: Poll: Is a Java Method an Instance of the Java Class java.lang.reflect.Method? Please reply with YES or NO. Lew <lewbloch@gmail.com> - 2012-02-06 01:55 -0800
        Re: Poll: Is a Java Method an Instance of the Java Class java.lang.reflect.Method? Please reply with YES or NO. Paka Small <paka-en@tumia.org> - 2012-02-06 11:57 -0800
          Re: Poll: Is a Java Method an Instance of the Java Class java.lang.reflect.Method? Please reply with YES or NO. Lew <lewbloch@gmail.com> - 2012-02-06 17:14 -0800
          Re: Poll: Is a Java Method an Instance of the Java Class java.lang.reflect.Method? Please reply with YES or NO. Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-02-07 09:52 -0800
  Re: Poll: Is a Java Method an Instance of the Java Class java.lang.reflect.Method? Please reply with YES or NO. Joshua Cranmer <Pidgeot18@verizon.invalid> - 2012-02-06 23:54 -0600
  Re: Poll: Is a Java Method an Instance of the Java Class java.lang.reflect.Method? Please reply with YES or NO. Patricia Shanahan <pats@acm.org> - 2012-02-06 21:58 -0800
    Re: Poll: Is a Java Method an Instance of the Java Class java.lang.reflect.Method? Please reply with YES or NO. Paul Cager <paul.cager@googlemail.com> - 2012-02-07 02:41 -0800
      Re: Poll: Is a Java Method an Instance of the Java Class java.lang.reflect.Method? Please reply with YES or NO. Patricia Shanahan <pats@acm.org> - 2012-02-07 09:35 -0800
      Re: Poll: Is a Java Method an Instance of the Java Class java.lang.reflect.Method? Please reply with YES or NO. Lew <lewbloch@gmail.com> - 2012-02-07 10:59 -0800
  Re: Poll: Is a Java Method an Instance of the Java Class java.lang.reflect.Method? Please reply with YES or NO. Leif Roar Moldskred <leifm@dimnakorr.com> - 2012-02-07 01:09 -0600
  Re: Poll: Is a Java Method an Instance of the Java Class java.lang.reflect.Method? Please reply with YES or NO. Paul Cager <paul.cager@googlemail.com> - 2012-02-07 03:01 -0800
  Re: Poll: Is a Java Method an Instance of the Java Class java.lang.reflect.Method? Please reply with YES or NO. Mayeul <mayeul.marguet@free.fr> - 2012-02-07 12:13 +0100
  Re: Poll: Is a Java Method an Instance of the Java Class java.lang.reflect.Method? Please reply with YES or NO. Lew <lewbloch@gmail.com> - 2012-02-07 11:04 -0800
  Re: Poll: Is a Java Method an Instance of the Java Class java.lang.reflect.Method? Please reply with YES or NO. Wanja Gayk <brixomatic@yahoo.com> - 2012-02-08 16:05 +0100

csiph-web