Adding enum support for method argument; need to emulate the same functionality for...
[iot2.git] / iotjava / iotrmi / Java / sample / CallBack_CBSkeleton.java
index 4149630600cbedd1f73bbddba9af58d65d3f9f54..0e01eba2619aac8d3f2a37f9c9be46a90324fd6b 100644 (file)
@@ -47,7 +47,7 @@ public class CallBack_CBSkeleton implements CallBackInterface {
        
        public void ___setInt(IoTRMIObject rmiObj) {
                Object[] paramObj = rmiObj.getMethodParams(new Class<?>[] { int.class }, 
-                       new Class<?>[] { null }, new Class<?>[] { null });
+                       new Class<?>[] { null });
                setInt((int) paramObj[0]);
        }
        
@@ -60,7 +60,7 @@ public class CallBack_CBSkeleton implements CallBackInterface {
                        case 0: ___printInt(rmiObj); break;
                        case 1: ___setInt(rmiObj); break;
                        default: 
-                               throw new Error("Signature not recognized!");
+                               throw new Error("Method Id not recognized!");
                }
        }