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


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

Re: methodhandles lookup

Path csiph.com!2.eu.feeder.erje.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: methodhandles lookup
Date Fri, 22 Jan 2016 17:12:03 +0100
Organization albasani.net
Lines 24
Message-ID <n7tkcm$hm8$1@news.albasani.net> (permalink)
References <1abadfac-e34b-4ff0-8ba5-613355fa928b@googlegroups.com> <n7t26f$29m$2@dont-email.me> <0bf0e18b-b787-4ce2-b0cc-f1706d786127@googlegroups.com> <n7t6ii$29m$5@dont-email.me>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Trace news.albasani.net vUWsy449IZ+ddS6OboIHiipwTqFr/86oj9nlHr/2/PCXH5n9hR8o9q+o5EcDxiWIS3xIWTU5Bnt48LjldBgjKQJXUi0sDfehmIQMipSzAYr+zC+dN09+gPlSeVrb0AgL
NNTP-Posting-Date Fri, 22 Jan 2016 16:12:06 +0000 (UTC)
Injection-Info news.albasani.net; logging-data="f6lxutgLi2wnTawUTM1R6qhRBHUVYsQNv0qJ/6Oo8oDzpnY8cUbF2LeJWZ1185RUtLGn33ZimslErs/JKFhdq+RjOlPL04JOugw2kgsdXB7u1EMLd8wxdV6gVeImyLDZ"; 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 <n7t6ii$29m$5@dont-email.me>
Cancel-Lock sha1:5cgkzCq7yZQ+KN4BfGQTAuZpgYE=
Xref csiph.com comp.lang.java.programmer:33513

Show key headers only | View raw


MethodHandle is a wrapper for Method (findStatic, etc..), Constructor 
(findConstructor, etc..) and Field (findSetter, findGetter etc..),
whos invokation translates to

the new byte code, which gives faster execution than using the
original Method, Constructor or Field API. But I don't have
enough experience to say more.


Jeff Higgins schrieb:
> On Fri, 22 Jan 2016 03:13:31 -0800, Philipp Kraus wrote:
>
>> Okay thanks.
>>
>> In my system I have got a component which creates the MethodHandle
>> objects from the Method object, so can I create based on the Method
>> object the handle object on its signature?
>> Can you explain how? In my case I will cache all Method objects and
>> build the handlers during runtime, is this fast enough?
>>
> An interesting article, I'll leave a link here as a memento for me.
> <http://mydailyjava.blogspot.com/2015/03/dismantling-invokedynamic.html>
>

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


Thread

methodhandles lookup Philipp Kraus <philipp.kraus.flashpixx@gmail.com> - 2016-01-22 00:19 -0800
  Re: methodhandles lookup Jeff Higgins <jeff@invalid.invalid> - 2016-01-22 08:57 +0000
  Re: methodhandles lookup Jeff Higgins <jeff@invalid.invalid> - 2016-01-22 11:01 +0000
    Re: methodhandles lookup Philipp Kraus <philipp.kraus.flashpixx@gmail.com> - 2016-01-22 03:13 -0800
      Re: methodhandles lookup Jeff Higgins <jeff@invalid.invalid> - 2016-01-22 11:43 +0000
        Re: methodhandles lookup Jeff Higgins <jeff@invalid.invalid> - 2016-01-22 12:03 +0000
          Re: methodhandles lookup Philipp Kraus <philipp.kraus.flashpixx@gmail.com> - 2016-01-24 01:59 -0800
      Re: methodhandles lookup Jeff Higgins <jeff@invalid.invalid> - 2016-01-22 12:16 +0000
        Re: methodhandles lookup Jan Burse <janburse@fastmail.fm> - 2016-01-22 17:12 +0100
  Re: methodhandles lookup Martin Gregorie <martin@address-in-sig.invalid> - 2016-01-22 11:27 +0000
    Re: methodhandles lookup Philipp Kraus <philipp.kraus.flashpixx@gmail.com> - 2016-01-24 01:56 -0800
  Re: methodhandles lookup Jan Burse <janburse@fastmail.fm> - 2016-01-22 16:49 +0100

csiph-web