[Arakhnę-Dev] [330] * Fixing the Caller API to support Sun JVM and the other JVMs (dalvik ...).

[ Thread Index | Date Index | More arakhne.org/dev Archives ]


Revision: 330
Author:   galland
Date:     2012-02-07 11:48:17 +0100 (Tue, 07 Feb 2012)
Log Message:
-----------
* Fixing the Caller API to support Sun JVM and the other JVMs (dalvik...). The Sun JVM provides the native Reflection utility class that is not provided by the other JVM.

Modified Paths:
--------------
    trunk/arakhneVmutils/java/src/test/java/org/arakhne/vmutil/CallerTest.java

Modified: trunk/arakhneVmutils/java/src/test/java/org/arakhne/vmutil/CallerTest.java
===================================================================
--- trunk/arakhneVmutils/java/src/test/java/org/arakhne/vmutil/CallerTest.java	2012-02-07 10:48:05 UTC (rev 329)
+++ trunk/arakhneVmutils/java/src/test/java/org/arakhne/vmutil/CallerTest.java	2012-02-07 10:48:17 UTC (rev 330)
@@ -106,18 +106,21 @@
 	 * @throws Exception
 	 */
 	public void testGetCallerClassInt() throws Exception {
-    	assertEquals(InnerCallerTest.class, this.caller.innerinnerTestGetCallerClass(0));
-    	assertEquals(CallerTest.class, this.caller.innerinnerTestGetCallerClass(1));
+    	assertEquals(CallerTest.class, this.caller.innerinnerTestGetCallerClass(0));
+    	assertEquals(InnerCallerTest.class, this.caller.innerinnerTestGetCallerClass(1));
+    	assertEquals(CallerTest.class, this.caller.innerinnerTestGetCallerClass(2));
 	}
 	
 	/**
 	 * @throws Exception
 	 */
 	public void testGetCallerMethodInt() throws Exception {
+    	assertEquals("innerTestGetCallerMethod", //$NON-NLS-1$
+    			this.caller.innerinnerTestGetCallerMethod(0));
     	assertEquals("innerinnerTestGetCallerMethod", //$NON-NLS-1$
-    			this.caller.innerinnerTestGetCallerMethod(0));
+    			this.caller.innerinnerTestGetCallerMethod(1));
     	assertEquals("testGetCallerMethodInt", //$NON-NLS-1$
-    			this.caller.innerinnerTestGetCallerMethod(1));
+    			this.caller.innerinnerTestGetCallerMethod(2));
 	}
 	
 	/**


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/