[
https://jira.jboss.org/jira/browse/EJBTHREE-1453?page=com.atlassian.jira....
]
jaikiran pai updated EJBTHREE-1453:
-----------------------------------
Attachment: EJBTHREE-1453 proposed fix.patch
Attaching a probable fix ("EJBTHREE-1453 proposed fix.patch").
After running the testcase ("EJBTHREE-1453 Testcase.patch") which will show the
failures, apply this patch ("EJBTHREE-1453 proposed fix.patch") and rerun the
testcase.
Invoking a bean method which accepts a superclass param throws
NoSuchMethodException
------------------------------------------------------------------------------------
Key: EJBTHREE-1453
URL:
https://jira.jboss.org/jira/browse/EJBTHREE-1453
Project: EJB 3.0
Issue Type: Bug
Components: proxy
Reporter: jaikiran pai
Assignee: jaikiran pai
Attachments: EJBTHREE-1453 proposed fix.patch, EJBTHREE-1453 Testcase.patch
The following scenario fails:
@Stateless
@Local (MyBeanInterface.class)
public class MyBean implements MyBeanInterface {
public void printObject(Object obj) {
// do something
}
}
SessionContainer sc = Utils.createSlsb(MyBean.class);
...
Context ctx = new InitialContext();
MyBeanInterface bean = (MyBeanInterface) ctx.lookup("blahblahblah");
bean.printObject(new String("i am a string"));
Fails with:
Caused by: java.lang.NoSuchMethodException:
org.jboss.ejb3.test.proxy.jndiregistrar.MySLSBLocal.printObject(java.lang.String)
at java.lang.Class.getDeclaredMethod(Class.java:1909)
at
org.jboss.ejb3.test.proxy.common.container.SessionContainer.invoke(SessionContainer.java:188)
at
org.jboss.ejb3.proxy.handler.session.SessionSpecProxyInvocationHandlerBase.invoke(SessionSpecPro
xyInvocationHandlerBase.java:120)
... 28 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira