diff options
author | aclement <aclement> | 2004-07-27 10:34:41 +0000 |
---|---|---|
committer | aclement <aclement> | 2004-07-27 10:34:41 +0000 |
commit | 936459c28229321deb0b09d076193be32cd9754e (patch) | |
tree | c5556e2d29d7182fa6a69312022789336b5a96ec /weaver | |
parent | 9867cbbcc40e471fb07ea7726fa02664f36ac8e8 (diff) | |
download | aspectj-936459c28229321deb0b09d076193be32cd9754e.tar.gz aspectj-936459c28229321deb0b09d076193be32cd9754e.zip |
Fix for 53999
"can't bind type" message has $ for . in type name for declare soft
Diffstat (limited to 'weaver')
-rw-r--r-- | weaver/src/org/aspectj/weaver/patterns/WildTypePattern.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/weaver/src/org/aspectj/weaver/patterns/WildTypePattern.java b/weaver/src/org/aspectj/weaver/patterns/WildTypePattern.java index f710c5aaa..01324e36b 100644 --- a/weaver/src/org/aspectj/weaver/patterns/WildTypePattern.java +++ b/weaver/src/org/aspectj/weaver/patterns/WildTypePattern.java @@ -333,6 +333,7 @@ public class WildTypePattern extends TypePattern { } String cleanName = maybeGetCleanName(); + String originalName = cleanName; if (cleanName != null) { TypeX type; @@ -347,14 +348,14 @@ public class WildTypePattern extends TypePattern { if (requireExactType) { if (!allowBinding) { scope.getWorld().getMessageHandler().handleMessage( - MessageUtil.error("can't bind type name '" + cleanName + "'", + MessageUtil.error("can't bind type name '" + originalName + "'", getSourceLocation())); } else if (scope.getWorld().getLint().invalidAbsoluteTypeName.isEnabled()) { - scope.getWorld().getLint().invalidAbsoluteTypeName.signal(cleanName, getSourceLocation()); + scope.getWorld().getLint().invalidAbsoluteTypeName.signal(originalName, getSourceLocation()); } return NO; } else if (scope.getWorld().getLint().invalidAbsoluteTypeName.isEnabled()) { - scope.getWorld().getLint().invalidAbsoluteTypeName.signal(cleanName, getSourceLocation()); + scope.getWorld().getLint().invalidAbsoluteTypeName.signal(originalName, getSourceLocation()); } } else { if (dim != 0) type = TypeX.makeArray(type, dim); |