aboutsummaryrefslogtreecommitdiffstats
path: root/asm
diff options
context:
space:
mode:
authoraclement <aclement>2008-09-19 01:01:06 +0000
committeraclement <aclement>2008-09-19 01:01:06 +0000
commitf414fa0b101bdde8f5828b419dd6a853682b1b00 (patch)
tree2e42bff002b1b02d28d10c10c5129861158d6910 /asm
parentcb290a9cc1316ba47f2b673bc5fd474da954d611 (diff)
downloadaspectj-f414fa0b101bdde8f5828b419dd6a853682b1b00.tar.gz
aspectj-f414fa0b101bdde8f5828b419dd6a853682b1b00.zip
247742: anonymous handles: c3
Diffstat (limited to 'asm')
-rw-r--r--asm/src/org/aspectj/asm/internal/JDTLikeHandleProvider.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/asm/src/org/aspectj/asm/internal/JDTLikeHandleProvider.java b/asm/src/org/aspectj/asm/internal/JDTLikeHandleProvider.java
index fa9fa9857..8b35cfbf7 100644
--- a/asm/src/org/aspectj/asm/internal/JDTLikeHandleProvider.java
+++ b/asm/src/org/aspectj/asm/internal/JDTLikeHandleProvider.java
@@ -83,10 +83,8 @@ public class JDTLikeHandleProvider implements IElementHandleProvider {
// (initializer's names are '...')
if (!ipe.getKind().equals(IProgramElement.Kind.INITIALIZER)) {
if (ipe.getKind() == IProgramElement.Kind.CLASS && ipe.getName().endsWith("{..}")) {
- // format: 'new Runnable() {..}'
- String n = ipe.getName();
- int bracketPos = n.indexOf("(");
- handle.append(n.substring(0, bracketPos));
+ // format: 'new Runnable() {..}' but its anon-y-mouse
+ // dont append anything, there may be a count to follow though (!<n>)
} else {
handle.append(ipe.getName()).append(getParameters(ipe));
}
@@ -100,8 +98,9 @@ public class JDTLikeHandleProvider implements IElementHandleProvider {
}
private String getParameters(IProgramElement ipe) {
- if (ipe.getParameterSignatures() == null || ipe.getParameterSignatures().isEmpty())
+ if (ipe.getParameterSignatures() == null || ipe.getParameterSignatures().isEmpty()) {
return "";
+ }
StringBuffer sb = new StringBuffer();
List parameterTypes = ipe.getParameterSignatures();
for (Iterator iter = parameterTypes.iterator(); iter.hasNext();) {