|
From: <ls...@us...> - 2007-06-16 19:49:10
|
Revision: 3250
http://jnode.svn.sourceforge.net/jnode/?rev=3250&view=rev
Author: lsantha
Date: 2007-06-16 12:49:07 -0700 (Sat, 16 Jun 2007)
Log Message:
-----------
Improved getCallerClass() to compile with sun.misc.Unsafe.getUnsafe().
Modified Paths:
--------------
trunk/core/src/openjdk/vm/sun/reflect/NativeReflection.java
Modified: trunk/core/src/openjdk/vm/sun/reflect/NativeReflection.java
===================================================================
--- trunk/core/src/openjdk/vm/sun/reflect/NativeReflection.java 2007-06-16 19:46:39 UTC (rev 3249)
+++ trunk/core/src/openjdk/vm/sun/reflect/NativeReflection.java 2007-06-16 19:49:07 UTC (rev 3250)
@@ -17,8 +17,8 @@
* @see Reflection#getCallerClass(int)
*/
static Class getCallerClass(int realFramesToSkip){
- //todo test it
- return VmSystem.getClassContext()[realFramesToSkip];
+ // using realFramesToSkip + 1 to skip VmSystem
+ return VmSystem.getRealClassContext()[realFramesToSkip + 1];
}
/**
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|