From 5f8d2cdff480ac9d04cc73a4a69eb11563a0bb01 Mon Sep 17 00:00:00 2001 From: aclement Date: Fri, 9 Dec 2005 10:32:57 +0000 Subject: test and fix for 119451 --- ajdoc/src/org/aspectj/tools/ajdoc/StubFileGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ajdoc') diff --git a/ajdoc/src/org/aspectj/tools/ajdoc/StubFileGenerator.java b/ajdoc/src/org/aspectj/tools/ajdoc/StubFileGenerator.java index c22906558..b30c40173 100644 --- a/ajdoc/src/org/aspectj/tools/ajdoc/StubFileGenerator.java +++ b/ajdoc/src/org/aspectj/tools/ajdoc/StubFileGenerator.java @@ -165,7 +165,7 @@ class StubFileGenerator{ String signature = classNode.getSourceSignature(); if (signature != null){ int index = signature.indexOf("aspect"); - if (index != -1 && signature.charAt(index-1) != '.') { + if (index == 0 || (index != -1 && signature.charAt(index-1) != '.') ) { signature = signature.substring(0, index) + "class " + signature.substring(index + 6, signature.length()); -- cgit v1.2.3