From 4cfcd37ea6daa646b33c955abd558bdfbe378f1a Mon Sep 17 00:00:00 2001 From: aclement Date: Tue, 1 Dec 2009 18:22:23 +0000 Subject: [PATCH] 296533: generics info in generated accessor names --- .../src/org/aspectj/weaver/ReferenceType.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- 2.39.5