From: aclement Date: Tue, 1 Dec 2009 18:22:23 +0000 (+0000) Subject: 296533: generics info in generated accessor names X-Git-Tag: V1_6_7~21 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4cfcd37ea6daa646b33c955abd558bdfbe378f1a;p=aspectj.git 296533: generics info in generated accessor names --- diff --git a/org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java b/org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java index 3fe97a4b6..4ee0d68a0 100644 --- a/org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java +++ b/org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java @@ -208,6 +208,11 @@ public class ReferenceType extends ResolvedType { } } + @Override + public String getNameAsIdentifier() { + return getRawName().replace('.', '_'); + } + @Override public AnnotationAJ getAnnotationOfType(UnresolvedType ofType) { AnnotationAJ[] axs = delegate.getAnnotations(); @@ -635,7 +640,7 @@ public class ReferenceType extends ResolvedType { } else if (isRawType()) { UnresolvedType[] paramTypes = getTypesForMemberParameterization(); interfaces = new ResolvedType[delegateInterfaces.length]; - for (int i = 0,max=interfaces.length; i < max; i++) { + for (int i = 0, max = interfaces.length; i < max; i++) { interfaces[i] = delegateInterfaces[i]; if (interfaces[i].isGenericType()) { // a generic supertype of a raw type is replaced by its raw