diff options
author | aclement <aclement> | 2006-01-09 13:31:55 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-01-09 13:31:55 +0000 |
commit | d69ce9aebb3ed4410f07e9992105748b69a0ff5e (patch) | |
tree | 7cdc63adaf53988c549f23601474df7a2ad65de5 /ajdoc/src | |
parent | 3cadffc3529d94894dfa955497edcfae257c95a6 (diff) | |
download | aspectj-d69ce9aebb3ed4410f07e9992105748b69a0ff5e.tar.gz aspectj-d69ce9aebb3ed4410f07e9992105748b69a0ff5e.zip |
fixes for ajdoc crash - bug 122728
Diffstat (limited to 'ajdoc/src')
-rw-r--r-- | ajdoc/src/org/aspectj/tools/ajdoc/StubFileGenerator.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ajdoc/src/org/aspectj/tools/ajdoc/StubFileGenerator.java b/ajdoc/src/org/aspectj/tools/ajdoc/StubFileGenerator.java index b30c40173..954936a0f 100644 --- a/ajdoc/src/org/aspectj/tools/ajdoc/StubFileGenerator.java +++ b/ajdoc/src/org/aspectj/tools/ajdoc/StubFileGenerator.java @@ -121,7 +121,9 @@ class StubFileGenerator{ && !member.getKind().equals(IProgramElement.Kind.ADVICE)) { signature = member.getSourceSignature();//StructureUtil.genSignature(member); if (member.getKind().equals(IProgramElement.Kind.ENUM_VALUE)){ - if (((IProgramElement)members.get(members.indexOf(member)+1)).getKind().equals(IProgramElement.Kind.ENUM_VALUE)){ + int index = members.indexOf(member); + if ((index + 1 < members.size()) && + ((IProgramElement)members.get(index+1)).getKind().equals(IProgramElement.Kind.ENUM_VALUE)){ // if the next member is also an ENUM_VALUE: signature = signature + ","; } else { |