diff --git a/test/Reflection.java b/test/Reflection.java index f71b39e81b..23d34abf7e 100644 --- a/test/Reflection.java +++ b/test/Reflection.java @@ -67,5 +67,10 @@ public class Reflection { expect(7.0 == (Double) Reflection.class.getMethod ("doubleMethod").invoke(null)); + + Class[][] array = new Class[][] { { Class.class } }; + expect("[Ljava.lang.Class;".equals(array[0].getClass().getName())); + expect(Class[].class == array[0].getClass()); + expect(array.getClass().getComponentType() == array[0].getClass()); } }