]> source.dussan.org Git - aspectj.git/commitdiff
252702: c7
authoraclement <aclement>
Thu, 13 Nov 2008 10:39:39 +0000 (10:39 +0000)
committeraclement <aclement>
Thu, 13 Nov 2008 10:39:39 +0000 (10:39 +0000)
asm/src/org/aspectj/asm/internal/JDTLikeHandleProvider.java

index 662f40deb724c4be2c4d676b914888468b1fb2d2..7c8e6253fc517aa4a9d392c2732161dd8607bbbe 100644 (file)
@@ -92,10 +92,14 @@ public class JDTLikeHandleProvider implements IElementHandleProvider {
                                // format: 'new Runnable() {..}' but its anon-y-mouse
                                // dont append anything, there may be a count to follow though (!<n>)
                        } else {
-                               // if (ipe.getKind() == IProgramElement.Kind.PACKAGE && ipe.getName().equals("DEFAULT")) {
-                               // // the delimiter will be in there, but skip the word DEFAULT as it is just a placeholder
-                               // } else {
-                               handle.append(ipe.getName()).append(getParameters(ipe));
+                               if (ipe.getKind() == IProgramElement.Kind.INTER_TYPE_CONSTRUCTOR) {
+                                       handle.append(ipe.getName()).append("_new").append(getParameters(ipe));
+                               } else {
+                                       // if (ipe.getKind() == IProgramElement.Kind.PACKAGE && ipe.getName().equals("DEFAULT")) {
+                                       // // the delimiter will be in there, but skip the word DEFAULT as it is just a placeholder
+                                       // } else {
+                                       handle.append(ipe.getName()).append(getParameters(ipe));
+                               }
                                // }
                        }
                }