]> source.dussan.org Git - aspectj.git/commitdiff
284771: before tjp clashing advice sigs dont get counter suffix
authoraclement <aclement>
Mon, 27 Jul 2009 17:27:25 +0000 (17:27 +0000)
committeraclement <aclement>
Mon, 27 Jul 2009 17:27:25 +0000 (17:27 +0000)
asm/src/org/aspectj/asm/internal/JDTLikeHandleProvider.java

index 074ab932131cc0acbfb8d689ba10d48fa5b1e628..2954f2780ad297fff0ab87101ef2b7dab220f139 100644 (file)
@@ -226,6 +226,19 @@ public class JDTLikeHandleProvider implements IElementHandleProvider {
                        if (ipeSig != null && ((idx = ipeSig.indexOf(")")) != -1)) {
                                ipeSig = ipeSig.substring(0, idx);
                        }
+                       if (ipeSig != null) {
+                               if (ipeSig.indexOf("Lorg/aspectj/lang") != -1) {
+                                       if (ipeSig.endsWith("Lorg/aspectj/lang/JoinPoint$StaticPart;")) {
+                                               ipeSig = ipeSig.substring(0, ipeSig.lastIndexOf("Lorg/aspectj/lang/JoinPoint$StaticPart;"));
+                                       }
+                                       if (ipeSig.endsWith("Lorg/aspectj/lang/JoinPoint;")) {
+                                               ipeSig = ipeSig.substring(0, ipeSig.lastIndexOf("Lorg/aspectj/lang/JoinPoint;"));
+                                       }
+                                       if (ipeSig.endsWith("Lorg/aspectj/lang/JoinPoint$StaticPart;")) {
+                                               ipeSig = ipeSig.substring(0, ipeSig.lastIndexOf("Lorg/aspectj/lang/JoinPoint$StaticPart;"));
+                                       }
+                               }
+                       }
                        for (Iterator iterator = kids.iterator(); iterator.hasNext();) {
                                IProgramElement object = (IProgramElement) iterator.next();
                                if (object.equals(ipe)) {