< prev index next >

test/jdk/valhalla/valuetypes/ArrayElementVarHandleTest.java

Print this page
rev 55119 : 8223387: [lworld] reflection support for LW2 arrays

*** 42,61 **** --- 42,70 ---- public class ArrayElementVarHandleTest { private static final Point P = Point.makePoint(10, 20); private static final Line L = Line.makeLine(10, 20, 30, 40); private static final MutablePath PATH = MutablePath.makePath(10, 20, 30, 40); + private static Class<?> nullablePointArrayClass() { + Object a = new Point?[0]; + return a.getClass(); + } + @DataProvider(name="arrayTests") static Object[][] arrayTests() { return new Object[][]{ new Object[] { Point[].class, new Point[] { Point.makePoint(1, 2), Point.makePoint(10, 20), Point.makePoint(100, 200)}}, new Object[] { Point[][].class, new Point[][] { new Point[] { Point.makePoint(1, 2), Point.makePoint(10, 20)}}}, + new Object[] { nullablePointArrayClass(), + new Point?[] { Point.makePoint(11, 22), + Point.makePoint(110, 220), + null}}, new Object[] { Line[].class, new Line[] { Line.makeLine(1, 2, 3, 4), Line.makeLine(10, 20, 30, 40), Line.makeLine(15, 25, 35, 45), Line.makeLine(20, 30, 40, 50)}},
< prev index next >