diff options
| author | 2017-02-03 13:55:07 +0000 | |
|---|---|---|
| committer | 2017-02-06 10:50:03 +0000 | |
| commit | d8ea9d3d61b65df29c7213ece6f92c457a5e2e00 (patch) | |
| tree | 6a3c53fa9c86d0996ef493476f98ff4b45de6b00 | |
| parent | 202d9ac328d9e37cf956b473cc2c1083622df1a4 (diff) | |
Tests for libcore change d2aa1365d25911076cb174a04b1d5152f0ff80e3
Test: make test-art-host
Bug: 31028374
Change-Id: Ic6e459d068f8ff2f7bd958bca9e7be433170381b
| -rw-r--r-- | test/956-methodhandles/src/Main.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/956-methodhandles/src/Main.java b/test/956-methodhandles/src/Main.java index 801904d9c9..fc9f030559 100644 --- a/test/956-methodhandles/src/Main.java +++ b/test/956-methodhandles/src/Main.java @@ -676,6 +676,13 @@ public class Main { Integer.class, MethodType.methodType(Integer.class, Integer.class)); fail("Unexpected success for non-void type for findConstructor"); } catch (NoSuchMethodException e) {} + + // Array class constructor. + try { + MethodHandle foo = MethodHandles.lookup().findConstructor( + Object[].class, MethodType.methodType(void.class)); + fail("Unexpected success for array class type for findConstructor"); + } catch (NoSuchMethodException e) {} } public static void testStringConstructors() throws Throwable { |