]> source.dussan.org Git - aspectj.git/commitdiff
252722: test and fix: generated super dispatch methods
authoraclement <aclement>
Mon, 15 Dec 2008 21:28:31 +0000 (21:28 +0000)
committeraclement <aclement>
Mon, 15 Dec 2008 21:28:31 +0000 (21:28 +0000)
org.aspectj.matcher/src/org/aspectj/weaver/AjcMemberMaker.java

index e7614157789bd2db2d8bedeb7df8cb3d033f260f..8d45b636984c7b608bf93a87440b950fe53981c5 100644 (file)
@@ -262,8 +262,12 @@ public class AjcMemberMaker {
        // --- inline accessors
        // ??? can eclipse handle a transform this weird without putting synthetics into the mix
        public static ResolvedMember superAccessMethod(UnresolvedType baseType, ResolvedMember method) {
+               UnresolvedType[] paramTypes = method.getParameterTypes();
+               // if (!method.isStatic()) {
+               // paramTypes = UnresolvedType.insert(method.getDeclaringType(), paramTypes);
+               // }
                return new ResolvedMemberImpl(Member.METHOD, baseType, Modifier.PUBLIC, method.getReturnType(), NameMangler
-                               .superDispatchMethod(baseType, method.getName()), method.getParameterTypes(), method.getExceptions());
+                               .superDispatchMethod(baseType, method.getName()), paramTypes, method.getExceptions());
        }
 
        public static ResolvedMember inlineAccessMethodForMethod(UnresolvedType aspectType, ResolvedMember method) {