[jboss-jira] [JBoss JIRA] (WFLY-4354) EJBs can't inherit a JDK8 default method

Jan Martiska (JIRA) issues at jboss.org
Tue Feb 17 02:46:49 EST 2015


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

Jan Martiska commented on WFLY-4354:
------------------------------------

Anyway even if I remove the condition {noformat} && (DEFAULT & method.getModifiers()) {noformat} I will get 
{noformat}
java.lang.IllegalStateException: WFLYEE0067: Method does not exist public default java.lang.String Doge.sayWow()
	at org.jboss.as.ee.component.BasicComponentInstance.getInterceptor(BasicComponentInstance.java:102)
	at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:52)
	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
	at org.jboss.as.ejb3.component.interceptors.NonPooledEJBComponentInstanceAssociatingInterceptor.processInvocation(NonPooledEJBComponentInstanceAssociatingInterceptor.java:59)
	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
	at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:255)
{noformat}

> EJBs can't inherit a JDK8 default method
> ----------------------------------------
>
>                 Key: WFLY-4354
>                 URL: https://issues.jboss.org/browse/WFLY-4354
>             Project: WildFly
>          Issue Type: Bug
>          Components: EJB
>    Affects Versions: 9.0.0.Alpha1
>            Reporter: Jan Martiska
>            Assignee: David Lloyd
>
> If an EJB bean inherits a default method from an interface and doesn't override it, attempt to call this method fails with:
> {noformat}
> org.jboss.invocation.CannotProceedException: INV000002: Invocation cannot proceed (end of interceptor chain has been hit)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the jboss-jira mailing list