// -- privileged accessors
public static ResolvedMember privilegedAccessMethodForMethod(TypeX aspectType, ResolvedMember method) {
- String sig;
- sig = method.getSignature();
+ String sig = method.getDeclaredSignature();
return new ResolvedMember(Member.METHOD,
method.getDeclaringType(),
Modifier.PUBLIC | (method.isStatic() ? Modifier.STATIC : 0),
Object[] returnAndParams = signatureToTypes(signature,false);
this.returnType = (TypeX) returnAndParams[0];
this.parameterTypes = (TypeX[]) returnAndParams[1];
+ signature = typesToSignature(returnType,parameterTypes,true);
}
}
this.name = name;
this.parameterTypes = parameterTypes;
if (kind == FIELD) {
- this.signature = returnType.getRawTypeSignature();
+ this.signature = returnType.getRawTypeSignature();
this.declaredSignature = returnType.getSignature();
} else {
- this.signature = typesToSignature(returnType, parameterTypes,true);
+ this.signature = typesToSignature(returnType, parameterTypes,true);
this.declaredSignature = typesToSignature(returnType,parameterTypes,false);
}
}
else buf.append(paramTypes[i].getSignature());
}
buf.append(")");
- buf.append(returnType.getSignature());
+ if (returnType.isParameterized() && useRawTypes) buf.append(returnType.getRawTypeSignature());
+ else buf.append(returnType.getSignature());
return buf.toString();
}