< prev index next >
test/hotspot/jtreg/runtime/valhalla/valuetypes/ValueTypeArray.java
Print this page
rev 52849 : [mq]: q-mirror-reflection
@@ -64,12 +64,15 @@
void testClassForName() {
String arrayClsName = "[Lruntime.valhalla.valuetypes.Point;";
try {
Class<?> arrayCls = Class.forName(arrayClsName);
assertTrue(arrayCls.isArray(), "Expected an array class");
- assertTrue(arrayCls.getComponentType() == Point.class,
- "Expected component type of Point.class");
+ // array-of-L-type not supported yet
+ // the component type of a flattened value array is of the value type
+ // the component type of a non-flattened array is of the box type
+ assertTrue(arrayCls.getComponentType().asBoxType() == Point.class,
+ "Expected component type of Point.class got: " + arrayCls.getComponentType());
arrayClsName = "[" + arrayClsName;
Class<?> mulArrayCls = Class.forName(arrayClsName);
assertTrue(mulArrayCls.isArray());
assertTrue(mulArrayCls.getComponentType() == arrayCls);
< prev index next >