aboutsummaryrefslogtreecommitdiffstats
path: root/asm
diff options
context:
space:
mode:
authoraclement <aclement>2006-08-25 12:37:49 +0000
committeraclement <aclement>2006-08-25 12:37:49 +0000
commit07e6e9a1767c860b483540ac165108983dc1e1f4 (patch)
treefd180b83ddb86ca9637df6afd9b1d75bb7c1a4a3 /asm
parent5787d0e82f32648f30f4677c13aef68d4615e300 (diff)
downloadaspectj-07e6e9a1767c860b483540ac165108983dc1e1f4.tar.gz
aspectj-07e6e9a1767c860b483540ac165108983dc1e1f4.zip
last of the dreaded jdtlikehandleprovider changes - 141730#22
Diffstat (limited to 'asm')
-rw-r--r--asm/src/org/aspectj/asm/internal/JDTLikeHandleProvider.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/asm/src/org/aspectj/asm/internal/JDTLikeHandleProvider.java b/asm/src/org/aspectj/asm/internal/JDTLikeHandleProvider.java
index e7912f7be..eb9ae4b5b 100644
--- a/asm/src/org/aspectj/asm/internal/JDTLikeHandleProvider.java
+++ b/asm/src/org/aspectj/asm/internal/JDTLikeHandleProvider.java
@@ -131,6 +131,12 @@ public class JDTLikeHandleProvider implements IElementHandleProvider {
}
} else if (ipe.getKind().equals(IProgramElement.Kind.INITIALIZER)) {
return String.valueOf(++initializerCounter).toCharArray();
+ } else if (ipe.getKind().equals(IProgramElement.Kind.CODE)) {
+ int index = CharOperation.lastIndexOf('!',byteCodeName);
+ if (index != -1) {
+ return convertCount(CharOperation.subarray(byteCodeName,
+ index+1,byteCodeName.length));
+ }
}
return empty;
}