]> source.dussan.org Git - aspectj.git/commitdiff
194314: copying parameter names across for local var table correctness
authoraclement <aclement>
Thu, 29 Jan 2009 04:03:30 +0000 (04:03 +0000)
committeraclement <aclement>
Thu, 29 Jan 2009 04:03:30 +0000 (04:03 +0000)
org.aspectj.matcher/src/org/aspectj/weaver/AjcMemberMaker.java

index 8d45b636984c7b608bf93a87440b950fe53981c5..c1cf85e7ffec9108963f640cc5f82e5ad1b91bf3 100644 (file)
@@ -475,6 +475,7 @@ public class AjcMemberMaker {
                ResolvedMemberImpl rmi = new ResolvedMemberImpl(Member.METHOD, meth.getDeclaringType(), modifiers, meth.getReturnType(),
                                NameMangler.interMethod(meth.getModifiers(), aspectType, meth.getDeclaringType(), meth.getName()), meth
                                                .getParameterTypes(), meth.getExceptions());
+               rmi.setParameterNames(meth.getParameterNames());
                rmi.setTypeVariables(meth.getTypeVariables());
                return rmi;
        }
@@ -527,7 +528,7 @@ public class AjcMemberMaker {
 
                ResolvedMemberImpl rmi = new ResolvedMemberImpl(Member.METHOD, aspectType, PUBLIC_STATIC, meth.getReturnType(), NameMangler
                                .interMethodDispatcher(aspectType, meth.getDeclaringType(), meth.getName()), paramTypes, meth.getExceptions());
-
+               rmi.setParameterNames(meth.getParameterNames());
                rmi.setTypeVariables(meth.getTypeVariables());
 
                return rmi;
@@ -549,6 +550,7 @@ public class AjcMemberMaker {
 
                ResolvedMemberImpl rmi = new ResolvedMemberImpl(Member.METHOD, aspectType, modifiers, meth.getReturnType(), NameMangler
                                .interMethodBody(aspectType, meth.getDeclaringType(), meth.getName()), paramTypes, meth.getExceptions());
+               rmi.setParameterNames(meth.getParameterNames());
                rmi.setTypeVariables(meth.getTypeVariables());
                return rmi;
        }