improve Reflection.lub() behavior for nested arrays
authoradam <adam@megacz.com>
Mon, 26 Mar 2007 05:37:18 +0000 (01:37 -0400)
committeradam <adam@megacz.com>
Mon, 26 Mar 2007 05:37:18 +0000 (01:37 -0400)
darcs-hash:20070326053718-5007d-d05b903cee99abac8635487705728b9d1282313c.gz

src/edu/berkeley/sbp/util/Reflection.java

index 1bd7ffc..a1c1dde 100644 (file)
@@ -97,6 +97,8 @@ public final class Reflection {
         if (c==null) c = Object.class;
         Object[] ret = Reflection.newArray(c, argo.length);
         System.arraycopy(argo, 0, ret, 0, argo.length);
         if (c==null) c = Object.class;
         Object[] ret = Reflection.newArray(c, argo.length);
         System.arraycopy(argo, 0, ret, 0, argo.length);
+        for(int i=0; i<ret.length; i++)
+            ret[i] = lub(ret[i]);
         return ret;
     }
 
         return ret;
     }