//BigInteger bi = new BigInteger("-1");
//System.out.println(bi);
+ StringBuilder sb = new StringBuilder(0);
+ sb.append('[');
+ sb.append(']');
+ System.out.println(sb.toString());
- /* TODO: Enumerate all methods in Class.class */
+ /* TODO: Enumerate all methods in Class.class
Method[] methods = Collection.class.getMethods();
for(Method mth : methods) {
System.out.println("===========================");
System.out.println();
Type returnType = mth.getGenericReturnType();
System.out.println(returnType + "\n");
- }
+ }*/
/*Method[] methods = Collection.class.getMethods();
// Method[] methods = Class.class.getMethods();
int count = env.getIntField(objref, "count");
int i;
int n = count +1;
-
+
+ // TODO: Fix for Groovy's model-checking
+ // TODO: Need to allocate something if the initial array is really empty
+ if (alen == 0) {
+ $init____V (env, objref);
+ aref = env.getReferenceField(objref, "value");
+ alen = env.getArrayLength(aref);
+ }
if (n < alen) {
env.setCharArrayElement(aref, count, c);
} else {
int m = 3 * alen / 2;
int arefNew = env.newCharArray(m);
- for (i=0; i<count; i++) {
+ for (i = 0; i < count; i++) {
env.setCharArrayElement(arefNew, i, env.getCharArrayElement(aref, i));
}
env.setCharArrayElement(arefNew, count, c);