~ubuntu-branches/ubuntu/vivid/cglib/vivid-proposed

« back to all changes in this revision

Viewing changes to src/proxy/net/sf/cglib/proxy/MethodInterceptorGenerator.java

  • Committer: Package Import Robot
  • Author(s): Damien Raude-Morvan
  • Date: 2011-11-01 22:05:40 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20111101220540-k68c9ybx884yzfte
Tags: 2.2.2+dfsg-1
* New upstream release.
* Bump Standards-Version to 3.9.2: no changes needed.
* d/copyright: Use DEP-5 format.
* d/rules: Enable unit testing.
* d/patches/04_skiptests_ParallelSorter.diff: Skip some failing test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
100
100
            e = ce.begin_method(Constants.ACC_FINAL,
101
101
                                impl,
102
102
                                method.getExceptionTypes());
103
 
            superHelper(e, method);
 
103
            superHelper(e, method, context);
104
104
            e.return_value();
105
105
            e.end_method();
106
106
 
126
126
            e.return_value();
127
127
 
128
128
            e.mark(nullInterceptor);
129
 
            superHelper(e, method);
 
129
            superHelper(e, method, context);
130
130
            e.return_value();
131
131
            e.end_method();
132
132
        }
133
133
        generateFindProxy(ce, sigMap);
134
134
    }
135
135
 
136
 
    private static void superHelper(CodeEmitter e, MethodInfo method)
 
136
    private static void superHelper(CodeEmitter e, MethodInfo method, Context context)
137
137
    {
138
138
        if (TypeUtils.isAbstract(method.getModifiers())) {
139
139
            e.throw_exception(ABSTRACT_METHOD_ERROR, method.toString() + " is abstract" );
140
140
        } else {
141
141
            e.load_this();
142
142
            e.load_args();
143
 
            e.super_invoke(method.getSignature());
 
143
            context.emitInvoke(e, method);
144
144
        }
145
145
    }
146
146