Reverting type resolution in C++ to Java types, e.g. byte and char instead of just...
[iot2.git] / iotjava / iotrmi / Java / IoTRMIUtil.java
index e2387557673986ba42c44ce169a70744cc1cc49a..23385ba5199947039f7d68d398cb95fc4c02b063 100644 (file)
@@ -211,7 +211,6 @@ public class IoTRMIUtil {
        public static Object getParamObjectArray(Class<?> type, byte[] paramBytes) {
                
                Object retObj = null;
-               System.out.println("Got here!!!");
                if ((type == byte[].class)      ||
                        (type == byte.class)) {
                        retObj = (Object) paramBytes;
@@ -284,7 +283,7 @@ public class IoTRMIUtil {
                
                byte[] retObjBytes = null;
                if (obj instanceof Byte) {
-                       retObjBytes = (byte[]) obj;
+                       retObjBytes = new byte[] { (byte) obj };
                } else if (obj instanceof Short) {
                        retObjBytes = shortToByteArray((short) obj);
                } else if (obj instanceof Integer) {