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 3b21c1b..bc5b67d 100644
--- a/regression/jvm/ExceptionsTest.java
+++ b/regression/jvm/ExceptionsTest.java
@@ -442,6 +442,19 @@ public class ExceptionsTest extends TestCase {
         takeObject(array);
     }
 
+    public static native void nativeMethod();
+
+    public static void testUnsatisfiedLinkError() {
+        boolean caught = false;
+
+        try {
+            nativeMethod();
+        } catch (UnsatisfiedLinkError e) {
+            caught = true;
+        }
+
+        assertTrue(caught);
+    }
 
     public static void main(String args[]) {
         testTryBlockDoesNotThrowAnything();
@@ -469,6 +482,7 @@ public class ExceptionsTest extends TestCase {
         testAnewarray();
         testNewarray();
         testMultianewarray();
+        testUnsatisfiedLinkError();
 
         exit();
     }
-- 
1.6.0.6


------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Jatovm-devel mailing list
Jatovm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jatovm-devel

Reply via email to