You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-java/hessian/files/3.0.8-java5.patch

29 lines
1.7 KiB

diff -uNr hessian-3.0.8.orig/src/com/caucho/hessian/client/HessianProxyFactory.java hessian-3.0.8/src/com/caucho/hessian/client/HessianProxyFactory.java
--- hessian-3.0.8.orig/src/com/caucho/hessian/client/HessianProxyFactory.java 2006-08-15 10:38:05.000000000 +0200
+++ hessian-3.0.8/src/com/caucho/hessian/client/HessianProxyFactory.java 2006-08-15 10:40:24.000000000 +0200
@@ -230,7 +230,7 @@
{
HessianProxy handler = new HessianProxy(this, new URL(url));
- return Proxy.newProxyInstance(api.getClassLoader(),
+ return java.lang.reflect.Proxy.newProxyInstance(api.getClassLoader(),
new Class[] { api,
HessianRemoteObject.class },
handler);
diff -uNr hessian-3.0.8.orig/src/com/caucho/hessian/client/HessianProxy.java hessian-3.0.8/src/com/caucho/hessian/client/HessianProxy.java
--- hessian-3.0.8.orig/src/com/caucho/hessian/client/HessianProxy.java 2006-08-15 10:38:05.000000000 +0200
+++ hessian-3.0.8/src/com/caucho/hessian/client/HessianProxy.java 2006-08-15 10:40:06.000000000 +0200
@@ -94,10 +94,10 @@
if (methodName.equals("equals") &&
params.length == 1 && params[0].equals(Object.class)) {
Object value = args[0];
- if (value == null || ! Proxy.isProxyClass(value.getClass()))
+ if (value == null || ! java.lang.reflect.Proxy.isProxyClass(value.getClass()))
return new Boolean(false);
- HessianProxy handler = (HessianProxy) Proxy.getInvocationHandler(value);
+ HessianProxy handler = (HessianProxy) java.lang.reflect.Proxy.getInvocationHandler(value);
return new Boolean(_url.equals(handler.getURL()));
}