mirror of
https://github.com/corda/corda.git
synced 2025-01-31 16:35:43 +00:00
fix Array.makeObjectArray regression
This commit is contained in:
parent
8cbe323d52
commit
7164743009
@ -366,7 +366,7 @@ Avian_java_lang_reflect_Array_makeObjectArray
|
||||
int length = arguments[1];
|
||||
|
||||
return reinterpret_cast<int64_t>
|
||||
(makeObjectArray(t, elementType, length));
|
||||
(makeObjectArray(t, jclassVmClass(t, elementType), length));
|
||||
}
|
||||
|
||||
extern "C" JNIEXPORT int64_t JNICALL
|
||||
|
@ -71,5 +71,11 @@ public class Arrays {
|
||||
expect(array[1023] == -1);
|
||||
expect(array[1022] == 0);
|
||||
}
|
||||
|
||||
{ Integer[] array = (Integer[])
|
||||
java.lang.reflect.Array.newInstance(Integer.class, 1);
|
||||
array[0] = Integer.valueOf(42);
|
||||
expect(array[0].intValue() == 42);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user