diff options
author | Andy Clement <aclement@pivotal.io> | 2015-09-04 14:40:23 -0700 |
---|---|---|
committer | Andy Clement <aclement@pivotal.io> | 2015-09-04 14:40:23 -0700 |
commit | 09b57263e817325b7e9505060e8aca9ecd464096 (patch) | |
tree | b3bd434f0bcb56d2f42a0ecf2d4bab7ab4acf1bb /ajdoc/src | |
parent | 0095636d6bb3bf50d33104df7460f28ab3a76f4d (diff) | |
download | aspectj-09b57263e817325b7e9505060e8aca9ecd464096.tar.gz aspectj-09b57263e817325b7e9505060e8aca9ecd464096.zip |
464604: ajdoc SIOOBE on Java7
Diffstat (limited to 'ajdoc/src')
-rw-r--r-- | ajdoc/src/org/aspectj/tools/ajdoc/HtmlDecorator.java | 5 |
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>" |