aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.matcher
diff options
context:
space:
mode:
authoraclement <aclement>2009-01-29 03:59:10 +0000
committeraclement <aclement>2009-01-29 03:59:10 +0000
commitb5045f23917acb21677dc31a251e629d558e7b99 (patch)
tree106dc6728dc2e126e41b563fc7748ae6dc32f61d /org.aspectj.matcher
parenta26e7b41b90b6ce92c795766bc73cd4b4c423152 (diff)
downloadaspectj-b5045f23917acb21677dc31a251e629d558e7b99.tar.gz
aspectj-b5045f23917acb21677dc31a251e629d558e7b99.zip
194314: give appropriate arg names to effective signature member for an array ctor call
Diffstat (limited to 'org.aspectj.matcher')
-rw-r--r--org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java b/org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java
index 2b5fd8f4b..0479420ea 100644
--- a/org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java
+++ b/org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java
@@ -1818,6 +1818,13 @@ public abstract class ResolvedType extends UnresolvedType implements AnnotatedEl
if (member.getKind() == Member.CONSTRUCTOR) {
ResolvedMemberImpl ret = new ResolvedMemberImpl(Member.CONSTRUCTOR, this, Modifier.PUBLIC, ResolvedType.VOID,
"<init>", world.resolve(member.getParameterTypes()));
+ // Give the parameters names - they are going to be the dimensions uses to build the array (dim0 > dimN)
+ int count = ret.getParameterTypes().length;
+ String[] paramNames = new String[count];
+ for (int i = 0; i < count; i++) {
+ paramNames[i] = new StringBuffer("dim").append(i).toString();
+ }
+ ret.setParameterNames(paramNames);
return ret;
}
}