ProceedingJoinPoint can's handle boolean type [message #599347] |
Tue, 18 November 2008 03:25 |
Hao Missing name Messages: 115 Registered: July 2009 |
Senior Member |
|
|
I have the following aspectj code.
@Pointcut(
"call(* setEnabled(boolean))&&target(ctrl)&&args(ena bled) "
)
void enableControl(org.eclipse.swt.widgets.Text ctrl, boolean enabled){}
@Around("enableControl(ctrl, enabled)")
public void enableControl(org.eclipse.swt.widgets.Text ctrl, boolean
enabled, ProceedingJoinPoint joinPoint){
joinPoint.proceed(new Object[]{ctrl, enabled});
}
I got the following runtime error:
java.lang.ClassCastException: java.lang.Boolean incompatible with
org.eclipse.swt.widgets.Button
Since Button only takes boolean value instead of Boolean but the
ProceedingJoinPoint can only take Boolean value. Is there any fix for the
problme?
|
|
|
Powered by
FUDForum. Page generated in 0.02163 seconds