summaryrefslogtreecommitdiff
blob: 906eb7efca183ada12b47bdb725e22b34b2aa260 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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()));
     }