aboutsummaryrefslogtreecommitdiffstats
path: root/weaver
diff options
context:
space:
mode:
authoraclement <aclement>2004-08-27 10:03:54 +0000
committeraclement <aclement>2004-08-27 10:03:54 +0000
commitb5e6307a63b0513cb058e8d6e56ff87287bdfa15 (patch)
tree70b0ee884349a3ed4d54190eca286ed975106764 /weaver
parentbd5021a1dd1f070a4be9192beb4daece84d3c1a8 (diff)
downloadaspectj-b5e6307a63b0513cb058e8d6e56ff87287bdfa15.tar.gz
aspectj-b5e6307a63b0513cb058e8d6e56ff87287bdfa15.zip
fix for Bugzilla Bug 72150
AJC possible bug with static nested classes
Diffstat (limited to 'weaver')
-rw-r--r--weaver/src/org/aspectj/weaver/TypeX.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/weaver/src/org/aspectj/weaver/TypeX.java b/weaver/src/org/aspectj/weaver/TypeX.java
index b871d721b..eb0ec35b4 100644
--- a/weaver/src/org/aspectj/weaver/TypeX.java
+++ b/weaver/src/org/aspectj/weaver/TypeX.java
@@ -583,8 +583,13 @@ public class TypeX {
if (name.equals("void")) return "V";
if (name.endsWith("[]"))
return "[" + nameToSignature(name.substring(0, name.length() - 2));
- if (name.length() != 0) // lots more tests could be made here...
- return "L" + name.replace('.', '/') + ";";
+ if (name.length() != 0) {
+ // lots more tests could be made here...
+
+ // 1) If it is already an array type, do not mess with it.
+ if (name.charAt(0)=='[' && name.charAt(name.length()-1)==';') return name;
+ else return "L" + name.replace('.', '/') + ";";
+ }
else
throw new BCException("Bad type name: " + name);
}