SF.net SVN: jikesrvm:[15713] rvmroot/trunk/testing/tests/jni/src/ TestJNIGetFieldID.java

View: New views
1 Messages — Rating Filter:   Alert me  

SF.net SVN: jikesrvm:[15713] rvmroot/trunk/testing/tests/jni/src/ TestJNIGetFieldID.java

by dgrove-oss :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Revision: 15713
          http://jikesrvm.svn.sourceforge.net/jikesrvm/?rev=15713&view=rev
Author:   dgrove-oss
Date:     2009-06-19 16:21:18 +0000 (Fri, 19 Jun 2009)

Log Message:
-----------
add additional test case from BK for getting the field of an implemented interface.

Modified Paths:
--------------
    rvmroot/trunk/testing/tests/jni/src/TestJNIGetFieldID.java

Modified: rvmroot/trunk/testing/tests/jni/src/TestJNIGetFieldID.java
===================================================================
--- rvmroot/trunk/testing/tests/jni/src/TestJNIGetFieldID.java 2009-06-18 02:29:11 UTC (rev 15712)
+++ rvmroot/trunk/testing/tests/jni/src/TestJNIGetFieldID.java 2009-06-19 16:21:18 UTC (rev 15713)
@@ -74,6 +74,18 @@
       allTestPass = false;
     }
 
+    try {
+      if (getStaticFinalF(I.class) == 1) {
+        if (verbose) System.out.println("static_I.f: pass");
+      } else {
+        if (verbose) System.out.println("static_I.f: fail");
+        allTestPass = false;
+      }
+    } catch(Throwable e) {
+      if (verbose) System.out.println("static_f: fail");
+      allTestPass = false;
+    }
+
     if (allTestPass) {
       System.out.println("PASS: TestJNIGetFieldID");
     } else {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

------------------------------------------------------------------------------
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
_______________________________________________
Jikesrvm-commits mailing list
Jikesrvm-commits@...
https://lists.sourceforge.net/lists/listinfo/jikesrvm-commits