aboutsummaryrefslogtreecommitdiffstats
path: root/ajdoc
diff options
context:
space:
mode:
authorAndy Clement <aclement@pivotal.io>2015-09-04 14:40:23 -0700
committerAndy Clement <aclement@pivotal.io>2015-09-04 14:40:23 -0700
commit09b57263e817325b7e9505060e8aca9ecd464096 (patch)
treeb3bd434f0bcb56d2f42a0ecf2d4bab7ab4acf1bb /ajdoc
parent0095636d6bb3bf50d33104df7460f28ab3a76f4d (diff)
downloadaspectj-09b57263e817325b7e9505060e8aca9ecd464096.tar.gz
aspectj-09b57263e817325b7e9505060e8aca9ecd464096.zip
464604: ajdoc SIOOBE on Java7
Diffstat (limited to 'ajdoc')
-rw-r--r--ajdoc/src/org/aspectj/tools/ajdoc/HtmlDecorator.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/ajdoc/src/org/aspectj/tools/ajdoc/HtmlDecorator.java b/ajdoc/src/org/aspectj/tools/ajdoc/HtmlDecorator.java
index 04af19f2d..f873c3e55 100644
--- a/ajdoc/src/org/aspectj/tools/ajdoc/HtmlDecorator.java
+++ b/ajdoc/src/org/aspectj/tools/ajdoc/HtmlDecorator.java
@@ -266,6 +266,11 @@ class HtmlDecorator {
// Java8:
// <pre>static class <span class="typeNameLabel">ClassA.InnerAspect</span>
classStartIndex = fileContents.toString().indexOf("class <span class=\"typeNameLabel\">");
+ if (classStartIndex == -1) {
+ // Java7: 464604
+ // <pre>public class <span class="strong">Azpect</span>
+ classStartIndex = fileContents.toString().indexOf("class <span class=\"strong\">");
+ }
int classEndIndex = fileContents.toString().indexOf("</span>", classStartIndex);
if (classEndIndex != -1) {
// Convert it to "aspect <span class="typeNameLabel">ClassA.InnerAspect</span>"