diff options
author | aclement <aclement> | 2004-08-27 10:03:54 +0000 |
---|---|---|
committer | aclement <aclement> | 2004-08-27 10:03:54 +0000 |
commit | b5e6307a63b0513cb058e8d6e56ff87287bdfa15 (patch) | |
tree | 70b0ee884349a3ed4d54190eca286ed975106764 /weaver | |
parent | bd5021a1dd1f070a4be9192beb4daece84d3c1a8 (diff) | |
download | aspectj-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.java | 9 |
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); } |