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


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

Re: methodhandles lookup

Path csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail
From Jeff Higgins <jeff@invalid.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: methodhandles lookup
Date Fri, 22 Jan 2016 12:03:25 -0000 (UTC)
Organization A noiseless patient Spider
Lines 29
Message-ID <n7t5qd$29m$4@dont-email.me> (permalink)
References <1abadfac-e34b-4ff0-8ba5-613355fa928b@googlegroups.com> <n7t26f$29m$2@dont-email.me> <0bf0e18b-b787-4ce2-b0cc-f1706d786127@googlegroups.com> <n7t4l7$29m$3@dont-email.me>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 8bit
Injection-Date Fri, 22 Jan 2016 12:03:25 -0000 (UTC)
Injection-Info mx02.eternal-september.org; posting-host="5e45ef46140b05dc5105f4b40d13e4a5"; logging-data="2358"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19pvqgnHOJYremJWiy9EwAi2MN8XH/eaSw="
User-Agent Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2)
Cancel-Lock sha1:2SBdvf4D1AWHjxGvII+8T+OYr1w=
Xref csiph.com comp.lang.java.programmer:33509

Show key headers only | View raw


On Fri, 22 Jan 2016 11:43:35 +0000, Jeff Higgins wrote:

> 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?
> 
> If you can obtain the correct Class<?> from Method you might use one of
> the MethodType.methodType(Class<?>, ...) methods. Not sure how fuzzy
> this might get when considering such things as bridge or synthetic
> methods.
> 
>> Can you explain how? 

I still think you might be able to leverage some ideas from
<http://wiki.eclipse.org/GEF/GEF4/Common#Adapt>.
Or more generically from the Adapter Pattern.

>> In my case I will cache all Method objects and
>> build the handlers during runtime, is this fast enough?
> 
> Fast enough for what?
> Not fair answering a question with a question?
> Ok then, try it.
> 
> 

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