[jboss-jira] [JBoss JIRA] (WFCORE-3512) ClassReflectionIndexUtil does not return default methods from findMethod

Stuart Douglas (JIRA) issues at jboss.org
Sun Jan 21 19:40:00 EST 2018


     [ https://issues.jboss.org/browse/WFCORE-3512?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stuart Douglas reopened WFCORE-3512:
------------------------------------


> ClassReflectionIndexUtil does not return default methods from findMethod
> ------------------------------------------------------------------------
>
>                 Key: WFCORE-3512
>                 URL: https://issues.jboss.org/browse/WFCORE-3512
>             Project: WildFly Core
>          Issue Type: Bug
>          Components: Server
>            Reporter: Daniel Bildhauer
>            Assignee: Stuart Douglas
>         Attachments: ejb-in-ear.zip, wildfly-ejb-in-ear-ear.ear
>
>
> This problem is in Wildfly Core, but manifests as an issue with EJB's in WildFly full.
> Given the following class/interface inheritance structure, the interface method doMagic could not be called from a remote view, even if there is a default implementation as given in the mixin interface. A local call works, but the remote call fails with a message like
> {code}
> org.jboss.invocation.CannotProceedException: INV000002: Invocation cannot proceed (end of interceptor chain has been hit)
> {code}
> Example code:
> {code}
> @Remote
> interface MyEJBInterface {
>    void doMagic();
> }
> interface MyEJBMixin extends MyEJBInterface {
>    default void doMagic() { .... }
> }
> @Stateless
> class MyEJBBean extends MyEJBMixin {
> }
> {code}
> The problem is inside the fix for WFLY-4354 bug, which checks only for the default method implementation in the interface declaring the method the first time but not in other interfaces. 
> A example is attached and I will submitt a pull request with a fix. 



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list