dlr 02/02/20 11:58:59
Modified: src/java/org/apache/xmlrpc XmlRpcServer.java
Log:
Removed Invoker.OBJECT_CLASS in favor of Object.class (duh).
Revision Changes Path
1.20 +5 -15 xml-rpc/src/java/org/apache/xmlrpc/XmlRpcServer.java
Index: XmlRpcServer.java
===================================================================
RCS file: /home/cvs/xml-rpc/src/java/org/apache/xmlrpc/XmlRpcServer.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -u -r1.19 -r1.20
--- XmlRpcServer.java 20 Feb 2002 02:18:19 -0000 1.19
+++ XmlRpcServer.java 20 Feb 2002 19:58:59 -0000 1.20
@@ -418,18 +418,6 @@
{
private Object invokeTarget;
private Class targetClass;
- private static Class OBJECT_CLASS;
- static
- {
- try
- {
- OBJECT_CLASS = Class.forName("java.lang.Object");
- }
- catch (ClassNotFoundException e)
- {
- throw new Error(e.toString());
- }
- }
public Invoker(Object target)
{
@@ -500,10 +488,12 @@
throw s_e;
}
- // our policy is to make all public methods callable except the ones
defined in java.lang.Object
- if (method.getDeclaringClass() == OBJECT_CLASS)
+ // Our policy is to make all public methods callable except
+ // the ones defined in java.lang.Object.
+ if (method.getDeclaringClass() == Object.class)
{
- throw new XmlRpcException(0, "Invoker can't call methods defined in
java.lang.Object");
+ throw new XmlRpcException(0, "Invoker can't call methods " +
+ "defined in java.lang.Object");
}
// invoke