diff options
-rw-r--r-- | asm/src/org/aspectj/asm/internal/JDTLikeHandleProvider.java | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/asm/src/org/aspectj/asm/internal/JDTLikeHandleProvider.java b/asm/src/org/aspectj/asm/internal/JDTLikeHandleProvider.java index 662f40deb..7c8e6253f 100644 --- a/asm/src/org/aspectj/asm/internal/JDTLikeHandleProvider.java +++ b/asm/src/org/aspectj/asm/internal/JDTLikeHandleProvider.java @@ -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)); + } // } } } |