From 023ada91266cd5a8e073f978d01f769ff978340e Mon Sep 17 00:00:00 2001 From: Ian Rogers <irogers@google.com> Date: Sun, 18 May 2014 13:24:56 -0700 Subject: Fix the expected failure when an array of void is attempted to be created. NoClassDefFoundError is the RI behavior. Change-Id: Ia03b585def9f772aeb17f1cdec4da2d0c807ede3 --- luni/src/test/java/dalvik/system/VMRuntimeTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/luni/src/test/java/dalvik/system/VMRuntimeTest.java b/luni/src/test/java/dalvik/system/VMRuntimeTest.java index 44af461..251ecd8 100644 --- a/luni/src/test/java/dalvik/system/VMRuntimeTest.java +++ b/luni/src/test/java/dalvik/system/VMRuntimeTest.java @@ -59,7 +59,7 @@ public final class VMRuntimeTest extends TestCase { try { Object array = VMRuntime.getRuntime().newNonMovableArray(void.class, 0); assertTrue(false); - } catch (IllegalArgumentException expected) { + } catch (NoClassDefFoundError expected) { } int maxLengthForLoop = 16 * 1024; @@ -113,7 +113,7 @@ public final class VMRuntimeTest extends TestCase { try { Object array = VMRuntime.getRuntime().newUnpaddedArray(void.class, 0); assertTrue(false); - } catch (IllegalArgumentException expected) { + } catch (NoClassDefFoundError expected) { } int maxLengthForLoop = 16 * 1024; -- cgit v1.1