[jboss-jira] [JBoss JIRA] (JGRP-2338) RpcDispatcher: non-reflective method invocations

Bela Ban (Jira) issues at jboss.org
Thu Apr 11 12:27:01 EDT 2019


    [ https://issues.jboss.org/browse/JGRP-2338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13721258#comment-13721258 ] 

Bela Ban commented on JGRP-2338:
--------------------------------

Added interface {{MethodInvoker}}. Example: {{ProgrammaticUPerf}}

> RpcDispatcher: non-reflective method invocations
> ------------------------------------------------
>
>                 Key: JGRP-2338
>                 URL: https://issues.jboss.org/browse/JGRP-2338
>             Project: JGroups
>          Issue Type: Feature Request
>            Reporter: Bela Ban
>            Assignee: Bela Ban
>            Priority: Major
>             Fix For: 4.1.0
>
>
> Running a native image produced by the GraalVM AOT (ahead-of-time) compiler prohibits the use of Java Reflection.
> However, RpcDispatcher uses {{java.lang.reflect.Method}} to invoke remote method calls.
> h4. Goal
> Provide a mode (in {{MethodCall}}) which doesn't require a {{MethodLookup}} table but rather takes user-provided code (e.g. a lambda) to find and invoke the correct method.
> This could be done by introducing an additional mode in {{MethodCall}} based on {{ID}} which calls the (user-provided) lambda to invoke a method. The lambda would read the arguments and invoke the method based on the received ID, then return the result.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list