Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: 2.6.0.Release
-
Fix Version/s: 2.6.1.Release
-
Component/s: DSL Support
-
Labels:None
-
Number of attachments :
Description
The isThisType pointcut compares the enclosingType to the currentType and returns true if they are the same. However, this is not always the expected behavior. Consider this:
class Other {
def method(Closure c) { ... }
}
class Foo {
def method() {
new Other().method {
xxx
}
}
}
I would expect that isThisType would return true when evaluating xxx, but it is not. The declaring type inside of the closure of method, is Other, and the enclosing type is Foo.
On the other hand, perhaps isThisType is appropriately named and behaving, but we need a different pointcut that will match on xxx, where there is no '.' in the expression.
Issue Links
- duplicates
-
GRECLIPSE-1295
DSLD suggstion for "isThisType" is wrong
-