Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AspectJ » ProceedingJoinPoint can's handle boolean type
ProceedingJoinPoint can's handle boolean type [message #599347] Tue, 18 November 2008 03:25
Hao Missing name is currently offline Hao Missing nameFriend
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:ProceedingJoinPoint can's handle boolean type
Next Topic:How to run automated PDE Build with AspectJ Support?
Goto Forum:
  


Current Time: Fri Apr 19 19:25:41 GMT 2024

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

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

Back to the top