Skip to main content

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 #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.
"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

Since Button only takes boolean value instead of Boolean but the
ProceedingJoinPoint can only take Boolean value. Is there any fix for the
Previous Topic:ProceedingJoinPoint can's handle boolean type
Next Topic:How to run automated PDE Build with AspectJ Support?
Goto Forum:

Current Time: Mon May 28 01:15:09 GMT 2018

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

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

Back to the top