[jboss-dev-forums] [Design of AOP on JBoss (Aspects/JBoss)] - MethodInvocation.getArguments return value for 0 arguments
sergeypk
do-not-reply at jboss.com
Fri Mar 23 15:21:55 EDT 2007
Hi,
I'm trying to debug this problem: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=104450&postdays=0&postorder=asc&start=10.
The exception is thrown from this aspect:
public Object handleCreateTextMessage(Invocation invocation) throws Throwable
| {
| JBossTextMessage jbm = new JBossTextMessage(0);
|
| MethodInvocation mi = (MethodInvocation)invocation;
|
| if (mi.getArguments() != null)
| {
| jbm.setText((String)mi.getArguments()[0]);
| }
|
| return new TextMessageProxy(jbm);
| }
|
What should MethodInvocation.getArguments() return when there are no arguments? Can it ever return null? Do all AOP versions behave the same way or has this changed?
Thanks,
Sergey
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031174#4031174
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031174
More information about the jboss-dev-forums
mailing list