Browse Source

Fixed a problem JIRA JASSIST-16


git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@268 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
tags/rel_3_17_1_ga
chiba 18 years ago
parent
commit
6670a56345

+ 2
- 2
src/main/javassist/util/proxy/MethodHandler.java View File

@@ -41,8 +41,8 @@ public interface MethodHandler {
* is a wrapper class.
* @return the resulting value of the method invocation.
*
* @throws Exception if the method invocation fails.
* @throws Throwable if the method invocation fails.
*/
Object invoke(Object self, Method thisMethod, Method proceed,
Object[] args) throws Exception;
Object[] args) throws Throwable;
}

+ 1
- 1
src/main/javassist/util/proxy/ProxyFactory.java View File

@@ -45,7 +45,7 @@ import javassist.bytecode.*;
* f.setSuperclass(Foo.class);
* MethodHandler mi = new MethodHandler() {
* public Object invoke(Object self, Method m, Method proceed,
* Object[] args) throws Exception {
* Object[] args) throws Throwable {
* System.out.println("Name: " + m.getName());
* proceed.invoke(self, args); // execute the original method.
* }

Loading…
Cancel
Save