Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.6.1.Release
-
Component/s: DSL Support
-
Labels:None
-
Number of attachments :
Description
Open any DSLD file. Type "isThisType" and CTRL-SPACE. Suggestion will add an argument. However trying to actually use 'isThisType' with an argument will result in an error. The error states that isThisType shouldn't be used with arguments.
Issue Links
- is duplicated by
-
GRECLIPSE-1292
isThisType pointcut not correct in DSLD
-
Yes. The problem is that we are comparing the current type to the enclosing type declaration. Rather, we should be comparing the current type to this type. the enclosing type declaration can be different from this when inside of a closure.
Easy fix to make. I think it is OK to change the semantics here. There already is another pointcut currentTypeIsEnclosingType, it has the same semantics as isThisType, but is deprecated. We should keep both pointcuts and provide them with different semantics.