]> source.dussan.org Git - aspectj.git/commitdiff
diagnostics for 278496
authoraclement <aclement>
Thu, 11 Jun 2009 22:53:41 +0000 (22:53 +0000)
committeraclement <aclement>
Thu, 11 Jun 2009 22:53:41 +0000 (22:53 +0000)
asm/src/org/aspectj/asm/internal/ProgramElement.java

index 8babd5df202b1bbe4ba1bd3e4303ac6433d0f455..57f2fc31f31fe636c1f2daf9262ca5f2d7e787e9 100644 (file)
@@ -553,7 +553,11 @@ public class ProgramElement implements IProgramElement {
                        if (asm == null && name.equals("<build to view structure>")) {
                                handle = "<build to view structure>";
                        } else {
-                               handle = asm.getHandleProvider().createHandleIdentifier(this);
+                               try {
+                                       handle = asm.getHandleProvider().createHandleIdentifier(this);
+                               } catch (ArrayIndexOutOfBoundsException aioobe) {
+                                       throw new RuntimeException("AIOOBE whilst building handle for " + this, aioobe);
+                               }
                        }
                }
                return handle;