Signed-off-by: Tomek Grabiec <tgrab...@gmail.com>
---
 regression/jvm/ExceptionsTest.java |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/regression/jvm/ExceptionsTest.java 
b/regression/jvm/ExceptionsTest.java
index 6982d27..152a043 100644
--- a/regression/jvm/ExceptionsTest.java
+++ b/regression/jvm/ExceptionsTest.java
@@ -223,9 +223,23 @@ public class ExceptionsTest extends TestCase {
         assertTrue(caught);
     }
 
+    public static void testArrayStoreThrowsArrayStoreException() {
+        boolean caught = false;
+        Object[] array = new String[3];
+
+        try {
+            array[2] = new Integer(0);
+        } catch (ArrayStoreException e) {
+            caught = true;
+        }
+
+        assertTrue(caught);
+    }
+
     public static void testArrayStore() {
         testArrayStoreThrowsNullPointerException();
         testArrayStoreThrowsArrayIndexOutOfBoundsException();
+        testArrayStoreThrowsArrayStoreException();
     }
 
     public static void testArraylength() {
-- 
1.6.0.6


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Jatovm-devel mailing list
Jatovm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jatovm-devel

Reply via email to