Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » ProceedingJoinPoint can's handle boolean type
ProceedingJoinPoint can's handle boolean type [message #72740] Tue, 18 November 2008 03:25
Hao Missing name is currently offline 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?
Previous Topic:cast thisJoinPoint to ProceedingJoinPoint
Next Topic:ProceedingJoinPoint can's handle boolean type
Goto Forum:
  


Current Time: Sat Oct 25 04:38:06 GMT 2014

Powered by FUDForum. Page generated in 0.01605 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software