summaryrefslogtreecommitdiffstats
path: root/java/sca/modules/binding-rmi-runtime/src/main
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-01-13 22:09:26 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-01-13 22:09:26 +0000
commit19c66274ef2071a2bd6aa8ccf85c97b54369773c (patch)
treec884d7d9168508c116de8fac30079fa6f5cbb5fc /java/sca/modules/binding-rmi-runtime/src/main
parent53fd9d4f006be5f3a897720b01c6e36ed0e180d0 (diff)
Update cglib, jaxb-impl versions
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@734255 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/binding-rmi-runtime/src/main')
-rw-r--r--java/sca/modules/binding-rmi-runtime/src/main/java/org/apache/tuscany/sca/binding/rmi/provider/RMIServiceBindingProvider.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/java/sca/modules/binding-rmi-runtime/src/main/java/org/apache/tuscany/sca/binding/rmi/provider/RMIServiceBindingProvider.java b/java/sca/modules/binding-rmi-runtime/src/main/java/org/apache/tuscany/sca/binding/rmi/provider/RMIServiceBindingProvider.java
index 4f657103d5..e277160aae 100644
--- a/java/sca/modules/binding-rmi-runtime/src/main/java/org/apache/tuscany/sca/binding/rmi/provider/RMIServiceBindingProvider.java
+++ b/java/sca/modules/binding-rmi-runtime/src/main/java/org/apache/tuscany/sca/binding/rmi/provider/RMIServiceBindingProvider.java
@@ -28,8 +28,8 @@ import java.security.AccessController;
import java.security.PrivilegedExceptionAction;
import net.sf.cglib.asm.ClassWriter;
-import net.sf.cglib.asm.Constants;
import net.sf.cglib.asm.Type;
+import net.sf.cglib.core.Constants;
import net.sf.cglib.proxy.Enhancer;
import net.sf.cglib.proxy.MethodInterceptor;
import net.sf.cglib.proxy.MethodProxy;
@@ -153,11 +153,11 @@ public class RMIServiceBindingProvider implements ServiceBindingProvider {
*/
private byte[] generateRemoteInterface(Class serviceInterface) {
String interfazeName = serviceInterface.getName();
- ClassWriter cw = new ClassWriter(false);
+ ClassWriter cw = new ClassWriter(ClassWriter.COMPUTE_MAXS);
String simpleName = serviceInterface.getSimpleName();
cw.visit(Constants.V1_5, Constants.ACC_PUBLIC + Constants.ACC_ABSTRACT + Constants.ACC_INTERFACE, interfazeName
- .replace('.', '/'), "java/lang/Object", new String[] {"java/rmi/Remote"}, simpleName + ".java");
+ .replace('.', '/'), null, "java/lang/Object", new String[] {"java/rmi/Remote"});
StringBuffer argsAndReturn = null;
Method[] methods = serviceInterface.getMethods();
@@ -175,8 +175,8 @@ public class RMIServiceBindingProvider implements ServiceBindingProvider {
cw.visitMethod(Constants.ACC_PUBLIC + Constants.ACC_ABSTRACT,
method.getName(),
argsAndReturn.toString(),
- new String[] {"java/rmi/RemoteException"},
- null);
+ null,
+ new String[] {"java/rmi/RemoteException"});
}
cw.visitEnd();
return cw.toByteArray();